Skip to content

Commit

Permalink
makeBinaryWrapper: unset NIX_CFLAGS
Browse files Browse the repository at this point in the history
Prevent the wrapper from being affected by the derivation's CFLAGS,
which may not even apply to GCC.
  • Loading branch information
ncfavier committed Apr 26, 2022
1 parent 532ebf6 commit f8cc8ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/build-support/setup-hooks/make-binary-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8cc8ff

Please sign in to comment.