diff options
author | Ian Lynagh <igloo@earth.li> | 2010-07-23 22:30:59 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-07-23 22:30:59 +0000 |
commit | 30fad70245d9ddfae0b781460bc51468a01f92f6 (patch) | |
tree | 47fd8aaf1fd55b190c1e84f38a356b1c4cbbb6f7 /mk | |
parent | ae8cc32e169e8d958f257714c1ae727e1a56a5e0 (diff) | |
download | haskell-30fad70245d9ddfae0b781460bc51468a01f92f6.tar.gz |
Use different CC/LD options for different stages
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index 4d9e01b836..2daf62354c 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -535,14 +535,18 @@ endif # C compiler and linker flags from configure (e.g. -m<blah> to select # correct C compiler backend). -CONF_CC_OPTS = @CONF_CC_OPTS@ -CONF_LD_OPTS = @CONF_LD_OPTS@ +CONF_CC_OPTS_STAGE0 = @CONF_CC_OPTS_STAGE0@ +CONF_CC_OPTS_STAGE1 = @CONF_CC_OPTS_STAGE1@ +CONF_CC_OPTS_STAGE2 = @CONF_CC_OPTS_STAGE2@ +CONF_LD_OPTS_STAGE0 = @CONF_LD_OPTS_STAGE0@ +CONF_LD_OPTS_STAGE1 = @CONF_LD_OPTS_STAGE1@ +CONF_LD_OPTS_STAGE2 = @CONF_LD_OPTS_STAGE2@ ifeq "$(TARGETPLATFORM)" "ia64-unknown-linux" CONF_CC_OPTS += -G0 endif -SRC_HSC2HS_OPTS += $(addprefix --cflag=,$(filter-out -O,$(SRC_CC_OPTS) $(CONF_CC_OPTS))) +SRC_HSC2HS_OPTS += $(addprefix --cflag=,$(filter-out -O,$(SRC_CC_OPTS) $(CONF_CC_OPTS_STAGE0))) SRC_HSC2HS_OPTS += $(foreach d,$(GMP_INCLUDE_DIRS),-I$(d)) #----------------------------------------------------------------------------- |