diff options
author | Naïm Favier <n@monade.li> | 2022-03-14 18:25:39 +0100 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-04-26 12:14:39 +0200 |
commit | f8cc8ff5755528d9a73671481ba3d6fb00f4e8d5 (patch) | |
tree | 8c81b001f9a6d6c651aa7cb613f9b2e0b500ae40 /pkgs/build-support | |
parent | 532ebf6b579ebf657a473c371eef7d52e13804a4 (diff) |
makeBinaryWrapper: unset NIX_CFLAGS
Prevent the wrapper from being affected by the derivation's CFLAGS, which may not even apply to GCC.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/setup-hooks/make-binary-wrapper.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/build-support/setup-hooks/make-binary-wrapper.sh b/pkgs/build-support/setup-hooks/make-binary-wrapper.sh index 986be5b9e1137..7123f100c1755 100644 --- a/pkgs/build-support/setup-hooks/make-binary-wrapper.sh +++ b/pkgs/build-support/setup-hooks/make-binary-wrapper.sh @@ -33,6 +33,8 @@ 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 original="$1" local wrapper="$2" shift 2 |