nixpkgs/pkgs/build-support/cc-wrapper
Orivej Desh 07674788d6 Respect NIX_DONT_SET_RPATH when .so appears in the command line
Unified processing of command line arguments in ld-wrapper broke support for
`NIX_DONT_SET_RPATH` and revealed that ld-wrapper adds the directory of its
`-plugin` argument to runpath. This pull request fixes that. It treats
`dir/libname.so` as `-L dir -l name`, because this is how `ld.so` interprets
resulting binary: with `dir` in `RUNPATH` and the bare `libname.so` (without
`dir`) in `NEEDED`, it looks for `libname.so` in each `RUNPATH` and chooses the
first, even when the linker was invoked with an absolute path to `.so`.
2017-08-01 11:57:33 +02:00
..
add-flags.sh cc-wrapper: add-{flags,hardening} -> add-{flags,hardening}.sh 2016-08-23 15:27:51 +00:00
add-hardening.sh Revert "cc-wrapper: add stackcheck hardening (stack clash)" 2017-06-26 01:12:38 +02:00
cc-wrapper.sh cc-wrapper/ld-wrapper: Minor speedup in string concatenation 2017-07-24 14:48:26 +02:00
default.nix stdenv-setup and misc pkgs: Revert to space-deliminated propagated-* files 2017-07-26 09:07:55 -04:00
expand-response-params.c cc-wrapper: expand-response-params: fix parsing of quotes that are quoted and escaped 2017-07-03 23:16:10 -04:00
gnat-wrapper.sh Merge branch 'master' into closure-size 2016-04-01 10:06:01 +02:00
gnatlink-wrapper.sh rename gcc-wrapper to cc-wrapper. 2015-01-14 20:26:56 -08:00
ld-solaris-wrapper.sh Replace hard coded /bin/bash occurrences 2016-10-04 20:15:37 +02:00
ld-wrapper.sh Respect NIX_DONT_SET_RPATH when .so appears in the command line 2017-08-01 11:57:33 +02:00
setup-hook.sh stdenv-setup and misc hooks: Work with bash-3.4 for MacOS nix-shell 2017-07-26 09:08:01 -04:00
utils.sh cc-wrapper: simplify expandResponseParams parser 2017-07-03 21:51:23 +00:00