Opened 7 years ago

Last modified 3 years ago

#54332 closed enhancement

Support for setting Deployment Target and Base SDK — at Initial Version

Reported by: ssisak (Steve Sisak) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.4.1
Keywords: Cc:
Port:

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.