From da933afad48bd14db334ef9bd82110739725e005 Mon Sep 17 00:00:00 2001 From: sewardj Date: Fri, 27 Apr 2001 16:30:08 +0000 Subject: [PATCH] [project @ 2001-04-27 16:30:08 by sewardj] When configuring GMP, restrict to the 486 instruction set. Doing otherwise produces GMPs which expect to run on the P6 core on which they were built, and so die with Illegal Instruction exceptions on Pentium (P5) and 486s. --- ghc/rts/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ghc/rts/Makefile b/ghc/rts/Makefile index 6565340..1580523 100644 --- a/ghc/rts/Makefile +++ b/ghc/rts/Makefile @@ -1,5 +1,5 @@ #----------------------------------------------------------------------------- -# $Id: Makefile,v 1.47 2001/04/24 15:03:37 simonmar Exp $ +# $Id: Makefile,v 1.48 2001/04/27 16:30:08 sewardj Exp $ # # This is the Makefile for the runtime-system stuff. # This stuff is written in C (and cannot be written in Haskell). @@ -152,13 +152,14 @@ endif ifneq "$(HaveLibGmp)" "YES" ifneq "$(HOSTPLATFORM)" "i386-unknown-mingw32" boot :: - cd gmp && ./configure --enable-shared=no + cd gmp && ./configure --enable-shared=no \ + --host=`echo $(HOSTPLATFORM) | sed 's/i[567]86/i486/g'` else boot :: cd gmp && ./configure --enable-shared=no --target=$(HOSTPLATFORM) endif -# Slight cheatage here to past host as target, but x-compilation isn't supported by ghc. +# Slight cheatage here to pass host as target, but x-compilation isn't supported by ghc. all :: gmp/libgmp.a -- 1.7.10.4