]> git.ipfire.org Git - thirdparty/gcc.git/commit
Darwin: Pass -macos_version_min to the linker [PR119172].
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 9 Mar 2025 09:24:34 +0000 (09:24 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Fri, 4 Jul 2025 05:33:09 +0000 (06:33 +0100)
commit6d57ab56981cf085480df21f602dacb7f3cf3e49
tree44726c1fc91001277518fb96daef059b97d1353a
parent8b89889c1f9329b52989f0036e49816b063a6d92
Darwin: Pass -macos_version_min to the linker [PR119172].

For binaries to be notarised, the SDK version must be available.
Since we do not, at present, parse this information we have been
passing "0.0" to ld64.  This now results in a warning and a fail
to notarise.  As a quick-fix, we can fall back to letting ld64
figure out the SDK version (which it does for -macos_version_min).

TODO: Parse the SDKSetting.plist at some point.

cherry-picked from 952e17223d3a9 and fc728cfd569e291a5

PR target/119172

gcc/ChangeLog:

* config.in: Regenerate.
* config/darwin.h (DARWIN_PLATFORM_ID): Add the option to
use -macos_version_min where available.
* configure: Regenerate.
* configure.ac: Check for ld64 support of -macos_version_min.

Co-authored-by: Andrew Pinski <quic_apinski@quicinc.com>
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/config.in
gcc/config/darwin.h
gcc/configure
gcc/configure.ac