[MacPorts] #54332: Support for setting Deployment Target and Base SDK

MacPorts noreply at macports.org
Sat Jun 17 18:53:53 UTC 2017


#54332: Support for setting Deployment Target and Base SDK
-------------------------+-------------------
 Reporter:  ssisak       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  base         |    Version:  2.4.1
 Keywords:               |       Port:
-------------------------+-------------------
 I'm using macports to build static libraries (i.e. ffmpeg and its
 dependencies) which will eventually be linked into an embedded framework
 in an application that may be deployed on multiple platforms, including
 systems older than the one I'm building on. In this case I'd like to build
 on 10.12 and deploy on 10.9 or later.

 In Xcode, I'd just set MACOSX_DEPLOYMENT_TARGET=10.9 and be done.

 It appears that macports had a similar macports.conf feature
 (universal_target) which was removed, linking back to
 https://trac.macports.org/changeset/30396

 Looking for a way to set this so that I don't get errors linking static
 libraries built with macorts into a framework with a different deployment
 target for instance:

 {{{
 ld: warning: object file
 (/Users/sgs/GotoReplay/Source/gotoreplay/Common/IOXMediaFoundation/FFmpeg/local/lib/libavutil.a(dict.o))
 was built for newer OSX version (10.12) than being linked (10.9)
 }}}

 There are also valid reasons to set SDKROOT

--
Ticket URL: <https://trac.macports.org/ticket/54332>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list