nixpkgs/pkgs/build-support/bintools-wrapper
Alyssa Ross 194ddeefd5
wrapBintoolsWith: support LINK.EXE-style args in purity checks
LLD supports Windows-style linker arguments, but these previously
triggered purity check false positives, because it saw that they
started with a '/' and assumed they were paths.

This tweaks the path detection to allow through certain values that
could be paths, but are much more likely to be LINK.EXE-style flags.
The risk of false negatives here is low — the only things we'd now
fail to catch would be attempts to link with libraries in the root
directory, which doesn't happen in practice.

We also teach the wrapper how to apply its purity checks to library
paths specified with the /LIBPATH: option.

Tested that paths we expect to be rejected (like /lib/libfoo.so) still
are.
2023-04-29 01:37:00 +00: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 {cc,binutils}-wrapper: match leading/trailing arguments 2021-09-20 17:24:04 -07: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 Merge pull request #227560 from jackyliu16/loongnix-commit 2023-04-28 13:21:42 +03: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 wrapBintoolsWith: support LINK.EXE-style args in purity checks 2023-04-29 01:37:00 +00:00
macos-sierra-reexport-hack.bash build-support: Use equivalent valid exit code 2022-11-29 19:11:45 +13:00
setup-hook.sh Revert #127736: stdenv changes towards an alternative shell 2021-07-17 20:39:47 +02:00