libstdc++: add setup-hook
commit0ea92a3c24f62e7f5006a4bc99152faa74723304
authorDaiderd Jordan <daiderd@gmail.com>
dateMon 4 Sep 2017, 21:07 (9 years ago)
parentf23b1a6
pkgs/development/compilers/gcc/libstdc++-hook.shnew file+1
@@ -0,0 +1 @@
1+export NIX_CXXSTDLIB_COMPILE+="-isystem $(echo -n @gcc@/include/c++/*) -isystem $(echo -n @gcc@/include/c++/*)/$(@gcc@/bin/gcc -dumpmachine)"
pkgs/top-level/all-packages.nix+4
@@ -5354,6 +5354,10 @@ with pkgs;
53545354
53555355 gccApple = throw "gccApple is no longer supported";
53565356
5357+ libstdcxxHook = makeSetupHook
5358+ { substitutions = { gcc = gcc-unwrapped; }; }
5359+ ../development/compilers/gcc/libstdc++-hook.sh;
5360+
53575361 # Can't just overrideCC, because then the stdenv-cross mkDerivation will be
53585362 # thrown away. TODO: find a better solution for this.
53595363 crossLibcStdenv = buildPackages.makeStdenvCross {