X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=12795234b8d54ab15ea9daa1fc4195bf5af68337;hb=25628e2771424cae1b3366322e8ce6f8a85440f9;hp=14fd667fad4e6e5b246ca5468841798d7d8bf2bc;hpb=847b9f6ac38debcf856df3c498ba7f4a7618cdd1;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index 14fd667..1279523 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -192,13 +192,18 @@ MACOSX_DEPLOYMENT_SDK = @MACOSX_DEPLOYMENT_SDK@ ifneq "$(MACOSX_DEPLOYMENT_VERSION)" "" MACOSX_DEPLOYMENT_CC_OPTS = -mmacosx-version-min=$(MACOSX_DEPLOYMENT_VERSION) \ - -isysroot $(MACOSX_DEPLOYMENT_SDK) + -isysroot $(MACOSX_DEPLOYMENT_SDK) \ + --no-builtin-fprintf MACOSX_DEPLOYMENT_LD_OPTS = -mmacosx-version-min=$(MACOSX_DEPLOYMENT_VERSION) \ -Wl,-syslibroot,$(MACOSX_DEPLOYMENT_SDK) # We don't extend SRC_CC_OPTS and friends here directly, as (a) they may get # overwritten in build.mk and (b) we must not use the deployment options in # stage 1 or we get a linker error if the bootstrap compiler is for a more # recent OS version. +# +# We need --no-builtin-fprintf, as the use of the builtin function optimisation +# for fprintf together with #include "PosixSource" in the RTS leads to the +# use of fwrite$UNIX2003 (with GCC 4.0.1 on Mac OS X 10.5.2). endif ################################################################################