X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FMakefile;h=6a75b87bcc9ff1100bc7dcc5d54701b88e9e374d;hb=85aa72b9dc6803685595936c61f3cab6faab815a;hp=f46cf959ce7081001ff431b6a7a51a482611a1ed;hpb=5e9fd7ed27f970084b4795c5c4619c30a953174f;p=ghc-hetmet.git diff --git a/ghc/rts/Makefile b/ghc/rts/Makefile index f46cf95..6a75b87 100644 --- a/ghc/rts/Makefile +++ b/ghc/rts/Makefile @@ -110,16 +110,17 @@ ifeq "$(way)" "mp" SRC_HC_OPTS += -I$$PVM_ROOT/include endif -ifeq "$(BootingFromHc)" "YES" -# use the normal $(CC) when booting from .hc files -SRC_CC_OPTS += $(HC_OPTS) -endif - -# Currently, you only get 'threads support' in the normal -# way. +# You get 'threads support' in the normal +# and profiling ways. ifeq "$(GhcRtsThreaded)" "YES" ifeq "$(way)" "" SRC_CC_OPTS += -DTHREADED_RTS +SRC_HC_OPTS += -optc-DTHREADED_RTS +PACKAGE_CPP_OPTS += -DTHREADED_RTS +endif +ifeq "$(way)" "p" +SRC_CC_OPTS += -DTHREADED_RTS +SRC_HC_OPTS += -optc-DTHREADED_RTS PACKAGE_CPP_OPTS += -DTHREADED_RTS endif endif @@ -218,16 +219,9 @@ endif ifneq "$(HaveLibGmp)" "YES" ifneq "$(HaveFrameworkHaskellSupport)" "YES" -ifneq "$(HOSTPLATFORM)" "i386-unknown-mingw32" boot :: - cd gmp && ./configure --enable-shared=no \ + cd gmp && CC=$(WhatGccIsCalled) ./configure --enable-shared=no \ --host=`echo $(HOSTPLATFORM) | sed 's/i[567]86/i486/g'` -else -# Pass --target to configure of GMP, so that building for mingwin under -# cygwin works properly (when the host is not the same as the target) -boot :: - cd gmp && CC=$(WhatGccIsCalled) ./configure --enable-shared=no --target=$(HOSTPLATFORM) -endif # Slight cheatage here to pass host as target, but x-compilation isn't supported by ghc.