summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorManuel M T Chakravarty <chak@cse.unsw.edu.au>2008-05-26 07:35:46 +0000
committerManuel M T Chakravarty <chak@cse.unsw.edu.au>2008-05-26 07:35:46 +0000
commit9f592bb0ae0dc76bd3ec7729474057d2069bb4db (patch)
treee6db7a5db662ef1bdb6cf0aef3884a2fb751778d /mk
parent92049cd60bd98e7803ea5c46150d80376d296557 (diff)
downloadhaskell-9f592bb0ae0dc76bd3ec7729474057d2069bb4db.tar.gz
Fix fwrite$UNIX2003 symbols when cross-compiling for Tiger
- When compiling with -mmacos-deployment-target=10.4, we need --no-builtin-fprintf, as the use of GCC's 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).
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 14fd667fad..12795234b8 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
################################################################################