diff options
author | sevan <sevan@pkgsrc.org> | 2015-12-13 22:38:00 +0000 |
---|---|---|
committer | sevan <sevan@pkgsrc.org> | 2015-12-13 22:38:00 +0000 |
commit | cfe6ed9259a0eeb2988915dd1a20fe2b7daee039 (patch) | |
tree | e36449128a499871a9be8dd51b38641716608dcb /mk | |
parent | 0b11bea98646c3e366fb882ef83139cd4a23c327 (diff) | |
download | pkgsrc-cfe6ed9259a0eeb2988915dd1a20fe2b7daee039.tar.gz |
Define MACOSX_DEPLOYMENT_TARGET for Tiger to allow current releases
of software such as Ruby to build on Tiger/PowerPC.
Tested with & without on a G4 with Tiger & Leopard.
It was not needed on Leopard as the linker defaults to a target of 10.5 &
setting it back broke the bootstrap process.
Reviewed by wiz@ long ago.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/platform/Darwin.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/platform/Darwin.mk b/mk/platform/Darwin.mk index 2a2c44746e0..35518274ee5 100644 --- a/mk/platform/Darwin.mk +++ b/mk/platform/Darwin.mk @@ -1,4 +1,4 @@ -# $NetBSD: Darwin.mk,v 1.74 2015/10/10 13:12:50 jperkin Exp $ +# $NetBSD: Darwin.mk,v 1.75 2015/12/13 22:38:00 sevan Exp $ # # Variable definitions for the Darwin operating system. @@ -170,6 +170,13 @@ CONFIGURE_ENV+= ac_cv_func_poll=no . endif .endif +# If the deployment target is not set explicitly, the linker in Tiger and prior +# versions running on PowerPC hosts defaults to a target of 10.1. +# Set the target for Tiger systems to be 10.4. +.if !empty(MACHINE_PLATFORM:MDarwin-8.*-powerpc) +MAKE_ENV+= MACOSX_DEPLOYMENT_TARGET="10.4" +.endif + # El Capitan GM has a file system bug where a deep directory hierarchy can be # created but not removed. Avoid running a test which does exactly this. # See https://openradar.appspot.com/radar?id=6160634819379200 |