nixpkgs/pkgs/build-support/bintools-wrapper
Andrew Childs 6605fadc68 bintools-wrapper: default platform versions for darwin
Instead of always supplying flags, apply the flags as defaults. Use
clang's native flags instead of lifting the linker flags from binutils
with `-Wl,`.

If a project is using clang to drive linking, make clang do the right
thing with MACOSX_DEPLOYMENT_TARGET. This can be overridden by command
line arguments. This will cause modern clang to pass
`-platform_version 10.12 0.0.0`, since it doesn't know about the SDK
settings. Older versions of clang will pass down `-macos_version_min`
flags with no sdk version.

At the linker layer, apply a default value for anything left
ambiguous. If nothing is specified, pass a full
`-platform_version`. If only `-macos_version_min` is specified, then
lock down the sdk_version explicitly with `-sdk_version`. If a min
version and sdk version is passed, do nothing.
2021-04-11 09:47:09 +09:00
..
add-darwin-ldflags-before.sh bintools-wrapper: default platform versions for darwin 2021-04-11 09:47:09 +09:00
add-flags.sh bintools-wrapper: skip dynamic linker for static binaries 2020-12-27 16:42:11 +01:00
add-hardening.sh *-wrapper; Switch from infixSalt to suffixSalt 2020-05-12 00:44:44 -04:00
default.nix bintools-wrapper: default platform versions for darwin 2021-04-11 09:47:09 +09:00
ld-solaris-wrapper.sh bintools-wrapper: Init 2017-12-13 16:08:18 -05:00
ld-wrapper.sh bintools-wrapper: default platform versions for darwin 2021-04-11 09:47:09 +09:00
macos-sierra-reexport-hack.bash cc-wrapper: Utilize patched cctools ld for more robust macOS Sierra hack 2018-04-13 13:17:03 -04:00
setup-hook.sh *-wrapper; Switch from infixSalt to suffixSalt 2020-05-12 00:44:44 -04:00