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

Re: [perl #126360] MACOSX_DEPLOYMENT_TARGET

Thread Previous | Thread Next
From:
David E. Wheeler
Date:
October 16, 2015 19:49
Subject:
Re: [perl #126360] MACOSX_DEPLOYMENT_TARGET
Message ID:
2AE9B284-2C92-4758-AAA1-2763EF87FAA8@justatheory.com
On Oct 16, 2015, at 9:48 AM, Craig A. Berry <craig.a.berry@gmail.com> wrote:

> That's kinda sorta what Jarkko's latest patch does when building on
> 10.6 or later, except instead of using the environment setting we use
> the -mmacosx-version-min command-line switch, adding it to compiler
> and linker flags.  The default is to use the OS version we're building
> on as the value for that switch, but if MACOSX_DEPLOYMENT_TARGET is
> set in the environment, we capture its value and use that instead.

Yeah, that sounds like a great solution.

> In either case (overridden from the environment or not) the
> -mmacosx-version-min settings in the flags will produce a consistent
> build target for extensions built against that perl later on other
> systems that are on different OS versions and/or do not have the
> environment setting.

Which is even better than what I had been assuming.

Best,

David
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