summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authorsevan <sevan>2015-12-13 22:38:00 +0000
committersevan <sevan>2015-12-13 22:38:00 +0000
commitbe734567868bc66d3e353659dcdd3db847ae1ffa (patch)
treee36449128a499871a9be8dd51b38641716608dcb /mk/platform
parentde27d82fc6960c378e908b5035fe7fb71ddaf5e0 (diff)
downloadpkgsrc-be734567868bc66d3e353659dcdd3db847ae1ffa.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/platform')
-rw-r--r--mk/platform/Darwin.mk9
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