develooper Front page | perl.perl5.porters | Postings from October 2015

Re: [perl #126360] MACOSX_DEPLOYMENT_TARGET

Thread Previous | Thread Next
From:
Sevan Janiyan
Date:
October 15, 2015 16:55
Subject:
Re: [perl #126360] MACOSX_DEPLOYMENT_TARGET
Message ID:
561FBCCE.3030101@geeklan.co.uk
Guys,
MACOSX_DEPLOYMENT_TARGET only makes sense on Leopard & prior. On Snow
Leopard & onwards using clang, it's taken care of automatically.

If this variable is not set, the cctools defaults to
MACOSX_DEPLOYMENT_TARGET to OS X 10.1 for PowerPC systems & 10.4 on
Intel systems.

Ideally MACOSX_DEPLOYMENT_TARGET should default to 10.4 but 10.3 is
actually the earliest version of OS X Perl 5 will run on correctly.

Is there any reason why the patch below is not a viable solution?

--- hints/darwin.sh.orig	2015-05-13 20:19:29.000000000 +0000
+++ hints/darwin.sh
@@ -200,7 +200,7 @@ case "$osvers" in
    ldflags="${ldflags} -flat_namespace"
    lddlflags="${ldflags} -bundle -undefined suppress"
    ;;
-*)
+[7-9].*)
    # MACOSX_DEPLOYMENT_TARGET selects the minimum OS level we want to
support
    #
https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.html
    lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
@@ -209,6 +209,9 @@ case "$osvers" in
        *) ld="env MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;
    esac
    ;;
+*)
+   lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
+   ;;
 esac
 ldlibpthname='DYLD_LIBRARY_PATH';

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About