libstdc++: add setup-hook
This commit is contained in:
parent
f23b1a6f94
commit
0ea92a3c24
1
pkgs/development/compilers/gcc/libstdc++-hook.sh
Normal file
1
pkgs/development/compilers/gcc/libstdc++-hook.sh
Normal file
@ -0,0 +1 @@
|
||||
export NIX_CXXSTDLIB_COMPILE+="-isystem $(echo -n @gcc@/include/c++/*) -isystem $(echo -n @gcc@/include/c++/*)/$(@gcc@/bin/gcc -dumpmachine)"
|
@ -5354,6 +5354,10 @@ with pkgs;
|
||||
|
||||
gccApple = throw "gccApple is no longer supported";
|
||||
|
||||
libstdcxxHook = makeSetupHook
|
||||
{ substitutions = { gcc = gcc-unwrapped; }; }
|
||||
../development/compilers/gcc/libstdc++-hook.sh;
|
||||
|
||||
# Can't just overrideCC, because then the stdenv-cross mkDerivation will be
|
||||
# thrown away. TODO: find a better solution for this.
|
||||
crossLibcStdenv = buildPackages.makeStdenvCross {
|
||||
|
Loading…
Reference in New Issue
Block a user