mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
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
@ -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 New Issue
Block a user