dev-lang/perl: update Darwin ld fix for newer versions
authorFabian Groffen <grobian@gentoo.org>
Thu, 7 Jan 2016 09:31:26 +0000 (10:31 +0100)
committerFabian Groffen <grobian@gentoo.org>
Thu, 7 Jan 2016 09:33:27 +0000 (10:33 +0100)
Package-Manager: portage-2.2.20-prefix

dev-lang/perl/files/eblits/src_configure-v50180002.eblit

index dfe9781309323fb44f1243a17be9421782ac9566..018ed283beaec7a73aac64bc7ea57a2385acc888 100644 (file)
@@ -74,8 +74,10 @@ eblit-perl-src_configure() {
 
        [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a"
 
-       # Make sure we can do the final link #523730
-       [[ ${CHOST} == *-darwin* ]] && myconf "-Dld=$(tc-getCC)"
+       # Make sure we can do the final link #523730, need to set deployment
+       # target to override hardcoded 10.3 which breaks on modern OSX
+       [[ ${CHOST} == *-darwin* ]] && \
+               myconf "-Dld=env MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} $(tc-getCC)"
 
        # Prefix: the host system needs not to follow Gentoo multilib stuff, and in
        # Prefix itself we don't do multilib either, so make sure perl can find