X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FMakefile;h=cdc8b3c3e445a61201fc8c7a7a63360475e4491f;hb=acd5ff194744289f7245303920b5c56f1bf9e038;hp=71b53fb25aae11a4a30e1a4108566f95daae14bd;hpb=b49514af620e5956d11698987a20cb0064629668;p=ghc-hetmet.git diff --git a/compiler/Makefile b/compiler/Makefile index 71b53fb..cdc8b3c 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -95,9 +95,6 @@ ifeq "$(stage)" "" stage=1 endif -# XXX DQ is now the same on all platforms, so get rid of it -DQ = \" - .DUMMY: stage_dir stage_dirs : $(MKDIRHIER) stage$(stage) @@ -476,6 +473,15 @@ bootstrapped = NO endif endif +# Beyond stage 1, honour any Mac OS X depolyment target options. If we use +# these options in stage 1 we get a linker error if the bootstrap compiler is +# for a more recent OS version +ifneq "$(findstring $(stage), 2 3)" "" +SRC_CC_OPTS += $(MACOSX_DEPLOYMENT_CC_OPTS) +SRC_HC_OPTS += $(addprefix -optc, $(MACOSX_DEPLOYMENT_CC_OPTS)) +SRC_LD_OPTS += $(addprefix -optl, $(MACOSX_DEPLOYMENT_LD_OPTS)) +endif + # ----------------------------------------------------------------------------- # Building a compiler with interpreter support # @@ -985,7 +991,7 @@ ifeq "$(BUILD_GHC_PACKAGE)" "YES" all :: $(GHC_PROG) endif -$(odir)/main/Config.$(way_)o: SRC_HC_OPTS+=-DSTAGE=$(DQ)$(stage)$(DQ) +$(odir)/main/Config.$(way_)o: SRC_HC_OPTS+=-DSTAGE='"$(stage)"' ifneq "$(findstring $(stage), 2 3)" "" $(warning LIBRARY is $(LIBRARY))