3
0
Fork 0
forked from mirrors/nixpkgs
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
add-flags.sh
add-hardening.sh
darwin-install_name_tool-wrapper.sh
darwin-strip-wrapper.sh
default.nix Merge pull request #227560 from jackyliu16/loongnix-commit 2023-04-28 13:21:42 +03:00
gnu-binutils-strip-wrapper.sh
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
setup-hook.sh