nixpkgs/pkgs/build-support/bintools-wrapper
sternenseemann 11fe2fc3cf stdenv: move --enable-deterministic-archives flag into GNU wrapper
`--enable-deterministic-archives` is a GNU specific strip flag and
causes other strip implementations (for example LLVM's, see #138013)
to fail. Since strip failures are ignored, this means that stripping
doesn't work at all in certain situation (causing unnecessary
dependencies etc.).

To fix this, no longer pass `--enable-deterministic-archives`
unconditionally, but instead add it in a GNU binutils specific strip
wrapper only.

`commonStripFlags` was only used for this flag, so we can remove
it altogether.

Future work could be to make a generic strip wrapper, with support for
nix-support/strip-flags-{before,after} and NIX_STRIP_FLAGS_{BEFORE,AFTER}.
This possibly overkill and unnecessary though -- also with the
additional challenge of incorporating the darwin strip wrapper somehow.
2021-09-18 15:11:17 +02:00
..
add-darwin-ldflags-before.sh bintools-wrapper: ensure roles are set before mangling variables 2021-04-11 10:27:16 +09:00
add-flags.sh bintools-wrapper: skip dynamic linker for static binaries 2020-12-27 16:42:11 +01:00
add-hardening.sh bintools: disable -pie when -r or -Ur are used (#128674) 2021-07-15 20:08:33 -05:00
darwin-install_name_tool-wrapper.sh darwin: wrap strip and install_name_tool to codesign modified files 2021-05-17 00:27:02 +09:00
darwin-strip-wrapper.sh darwin: wrap strip and install_name_tool to codesign modified files 2021-05-17 00:27:02 +09:00
default.nix stdenv: move --enable-deterministic-archives flag into GNU wrapper 2021-09-18 15:11:17 +02:00
gnu-binutils-strip-wrapper.sh stdenv: move --enable-deterministic-archives flag into GNU wrapper 2021-09-18 15:11:17 +02:00
ld-solaris-wrapper.sh
ld-wrapper.sh Update pkgs/build-support/bintools-wrapper/ld-wrapper.sh 2021-05-24 15:44:01 +01: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 Revert #127736: stdenv changes towards an alternative shell 2021-07-17 20:39:47 +02:00