buildFHSEnv: fix compiler search paths
Fixes OpenWrt compilation.
This commit is contained in:
parent
2bc4febf80
commit
94f0ef6628
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user