stdenvAdapters.useOldCXXAbi: add new adapter

This commit is contained in:
Nikolay Amiantov 2016-03-31 19:50:53 +03:00
parent 1186bffb7f
commit 9134f9358a

View File

@ -241,4 +241,11 @@ rec {
then pkgs.allStdenvs.stdenvDarwinNaked then pkgs.allStdenvs.stdenvDarwinNaked
else pkgs.stdenv; else pkgs.stdenv;
}; };
/* Modify a stdenv so a build uses pre-C++11 ABI by default. */
useOldCXXAbi = stdenv: stdenv //
{ mkDerivation = args: stdenv.mkDerivation (args // {
NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " -D_GLIBCXX_USE_CXX11_ABI=0";
});
};
} }