cc-wrapper: wrap cpp
for cross lust like to native
Without this change $target-cpp is used unwrapped and is missing standard header search paths among other things). Example failure: $ nix build -f. -L pkgsStatic.netbsd.compat ... > checking how to run the C preprocessor... x86_64-unknown-linux-musl-cpp > configure: error: in `/build/cvs-export/tools/compat': > configure: error: C preprocessor "x86_64-unknown-linux-musl-cpp" fails sanity check > See `config.log' for more details
This commit is contained in:
parent
2394986204
commit
4bdbae5ad1
1 changed files with 4 additions and 0 deletions
|
@ -228,6 +228,10 @@ stdenv.mkDerivation {
|
|||
|
||||
if [ -e $ccPath/cpp ]; then
|
||||
wrap ${targetPrefix}cpp $wrapper $ccPath/cpp
|
||||
'' + lib.optionalString (hostPlatform != targetPlatform) ''
|
||||
elif [ -e $ccPath/${targetPrefix}cpp ]; then
|
||||
wrap ${targetPrefix}cpp $wrapper $ccPath/${targetPrefix}cpp
|
||||
'' + ''
|
||||
fi
|
||||
''
|
||||
|
||||
|
|
Loading…
Reference in a new issue