git.iko.soy/typeable/nixpkgs
on master help sign in
buildFHSEnv: fix NIX_* compiler flags

This is needed now after #27672.

commit2a036ca1a5eafdaed11be14d14a91c3b24508379 authorNikolay Amiantov <ab@fmap.me> dateMon 16 Oct 2017, 22:06 (9 years ago) parent6e1f864
1 file changed+1
pkgs/build-support/build-fhs-userenv/env.nix+1
pkgs/build-support/build-fhs-userenv/env.nix+1
@@ -54,6 +54,7 @@ let
5454 export PATH='/run/wrappers/bin:/usr/bin:/usr/sbin'
5555
5656 # Force compilers and other tools to look in default search paths
57+ export NIX_CC_WRAPPER_${stdenv.cc.infixSalt}_TARGET_HOST=1
5758 export NIX_CFLAGS_COMPILE='-idirafter /usr/include'
5859 export NIX_LDFLAGS_BEFORE='-L/usr/lib -L/usr/lib32'
5960 export PKG_CONFIG_PATH=/usr/lib/pkgconfig