libstdc++: add setup-hook

This commit is contained in:
Daiderd Jordan 2017-09-04 21:07:05 +02:00
parent f23b1a6f94
commit 0ea92a3c24
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 5 additions and 0 deletions

View file

@ -0,0 +1 @@
export NIX_CXXSTDLIB_COMPILE+="-isystem $(echo -n @gcc@/include/c++/*) -isystem $(echo -n @gcc@/include/c++/*)/$(@gcc@/bin/gcc -dumpmachine)"

View file

@ -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 {