X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fbootstrap.mk;h=d0713311b91cafbbfbf0b5054dc7977866eb8ce0;hb=9f8e195e69e54c733eb93b2e2e39c2ebe818ce62;hp=1501d5500c3fca649728010d3faad4573b7228d2;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1;p=ghc-hetmet.git diff --git a/mk/bootstrap.mk b/mk/bootstrap.mk index 1501d55..d071331 100644 --- a/mk/bootstrap.mk +++ b/mk/bootstrap.mk @@ -8,17 +8,6 @@ # compile the .hc files, so we have to duplicate that functionality here. # The result is unfortunately ugly, but we don't have another choice. -TOP_SAVED := $(TOP) -TOP:=$(TOP)/ghc - -include $(TOP)/mk/version.mk -include $(TOP)/mk/paths.mk - -# Reset TOP -TOP:=$(TOP_SAVED) - -include $(TOP)/mk/suffix.mk - # ----------------------------------------------------------------------------- # Set the platform-specific options to send to the C compiler. These should # match the list in machdepCCOpts in ghc/compiler/DriverFlags.hs. @@ -29,11 +18,15 @@ PLATFORM_HC_BOOT_CC_OPTS = ifeq "$(i386_TARGET_ARCH)" "1" PLATFORM_CC_OPTS += -DDONT_WANT_WIN32_DLL_SUPPORT -PLATFORM_HC_BOOT_CC_OPTS += -fno-defer-pop -fomit-frame-pointer +PLATFORM_HC_BOOT_CC_OPTS += -fno-defer-pop -fomit-frame-pointer -fno-builtin +endif + +ifeq "$(x86_64_TARGET_ARCH)" "1" +PLATFORM_HC_BOOT_CC_OPTS += -fomit-frame-pointer -fno-asynchronous-unwind-tables -fno-unit-at-a-time -fno-builtin endif ifeq "$(hppa_TARGET_ARCH)" "1" -PLATFORM_CC_OPTS += -static -D_HPUX_SOURCE +PLATFORM_CC_OPTS += -D_HPUX_SOURCE endif ifeq "$(powerpc_TARGET_ARCH)" "1"