nixpkgs/pkgs/build-support/bintools-wrapper
Sergei Trofimovich 549e08c8e8 bintools-wrapper, cc-wrapper: avoid invalid export of 'expand-response-params'
POSIX sh (and `bash`) impose a restriction on environment variable name
format and disallow hypheps in the names. Normally it's not a problem
as nothing usually tries to refer nyphenated names.

One exception is `nix develop` (https://github.com/NixOS/nix/issues/6848):

    $ nix develop -f. gcc -L
    gcc-wrapper> ...-get-env.sh: line 70: expand-response-params: bad substitution

Note that bash usually uses explicitly created `expandResponseParams`
variant of the same variable.

To work the problem around let's avoid environment variable export and move
it to `passthru` for `cc` (used ina  few places) and remove it completely for
`binutils` (does not seem to be used at all).
2022-07-31 16:31:13 +01: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 bintools-wrapper, cc-wrapper: avoid invalid export of 'expand-response-params' 2022-07-31 16:31:13 +01: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 gcc: pass --with-build-sysroot=/ for gcc builds 2022-07-23 18:40:07 +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