diff options
author | Naïm Favier <n@monade.li> | 2022-05-06 17:03:52 +0200 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-05-06 17:03:52 +0200 |
commit | d4aa650608fdbf78a9697e272d88f5f6e809744b (patch) | |
tree | bc70e8f0975788f232bea0b9f07b2dcb16dcc00a /pkgs/build-support | |
parent | 69c7dbb88086b9bd5dce9c314779bed6ac6cb0a9 (diff) |
makeBinaryWrapper: really unset NIX_CFLAGS
https://github.com/NixOS/nixpkgs/commit/f8cc8ff5755528d9a73671481ba3d6fb00f4e8d5 fails to unset the variables in the environment due to a Bash quirk, so set them to the empty string instead.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/setup-hooks/make-binary-wrapper.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/build-support/setup-hooks/make-binary-wrapper.sh b/pkgs/build-support/setup-hooks/make-binary-wrapper.sh index 7b69583574a08..3931b37c24295 100644 --- a/pkgs/build-support/setup-hooks/make-binary-wrapper.sh +++ b/pkgs/build-support/setup-hooks/make-binary-wrapper.sh @@ -33,8 +33,7 @@ assertExecutable() { # To troubleshoot a binary wrapper after you compiled it, # use the `strings` command or open the binary file in a text editor. makeWrapper() { - local NIX_CFLAGS_COMPILE NIX_CFLAGS_LINK - unset NIX_CFLAGS_COMPILE NIX_CFLAGS_LINK + local NIX_CFLAGS_COMPILE= NIX_CFLAGS_LINK= local original="$1" local wrapper="$2" shift 2 |