buildFHSEnv: fix compiler search paths

Fixes OpenWrt compilation.
This commit is contained in:
Nikolay Amiantov 2018-03-10 23:53:53 +03:00
parent 2bc4febf80
commit 94f0ef6628

View file

@ -54,9 +54,11 @@ let
export PATH='/run/wrappers/bin:/usr/bin:/usr/sbin'
# Force compilers and other tools to look in default search paths
unset NIX_ENFORCE_PURITY
export NIX_CC_WRAPPER_${stdenv.cc.infixSalt}_TARGET_HOST=1
export NIX_CFLAGS_COMPILE='-idirafter /usr/include'
export NIX_LDFLAGS_BEFORE='-L/usr/lib -L/usr/lib32'
export NIX_CFLAGS_LINK='-L/usr/lib -L/usr/lib32'
export NIX_LDFLAGS='-L/usr/lib -L/usr/lib32'
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
export ACLOCAL_PATH=/usr/share/aclocal