diff options
author | Manuel M T Chakravarty <chak@cse.unsw.edu.au> | 2008-02-21 22:44:49 +0000 |
---|---|---|
committer | Manuel M T Chakravarty <chak@cse.unsw.edu.au> | 2008-02-21 22:44:49 +0000 |
commit | 5b846fa36eee0f96c4c47128706d0131f8bb4113 (patch) | |
tree | 1991038fe55b93d063958dfe8fe230b1911f2a28 /mk | |
parent | 7350aaa60aaf63074202f24208497e2d64ddffb2 (diff) | |
download | haskell-5b846fa36eee0f96c4c47128706d0131f8bb4113.tar.gz |
Mac OS X deployment target: piping opts through Makefiles
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index da5d957f80..0e0a61301c 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -187,8 +187,19 @@ XMLDocWays= # Mac OS X deployment target (to cross-compile for older OS versions) # -MACOS_DEPLOYMENT_VERSION = @MACOS_DEPLOYMENT_VERSION@ -MACOS_DEPLOYMENT_SDK = @MACOS_DEPLOYMENT_SDK@ +MACOSX_DEPLOYMENT_VERSION = @MACOSX_DEPLOYMENT_VERSION@ +MACOSX_DEPLOYMENT_SDK = @MACOSX_DEPLOYMENT_SDK@ + +ifneq "$(MACOSX_DEPLOYMENT_VERSION)" "" +MACOSX_DEPLOYMENT_CC_OPTS = -mmacosx-version-min=$(MACOSX_DEPLOYMENT_VERSION) \ + -isysroot $(MACOSX_DEPLOYMENT_SDK) +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. +endif ################################################################################ # |