Fix libcxxStdenv on Linux

This corrects linkage failures arising from missing -lc++abi and
resolves "unused argument" warnings arising due to -stdlib=libc++
serving no purpose when search paths are being supplied explicitly.
This commit is contained in:
Benjamin Saunders 2015-06-28 20:58:31 +02:00 committed by Jude Taylor
parent b875ea5d29
commit 19f371d8d9
3 changed files with 5 additions and 9 deletions

View File

@ -1,4 +1,2 @@
export NIX_CFLAGS_COMPILE+=" -isystem @out@/include/c++/v1"
export NIX_CXXSTDLIB_COMPILE=" -stdlib=libc++"
export NIX_CXXSTDLIB_LINK=" -stdlib=libc++"
export NIX_CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
export NIX_CXXSTDLIB_LINK=" -lc++ -lc++abi"

View File

@ -1,4 +1,2 @@
export NIX_CFLAGS_COMPILE+=" -isystem @out@/include/c++/v1"
export NIX_CXXSTDLIB_COMPILE=" -stdlib=libc++"
export NIX_CXXSTDLIB_LINK=" -stdlib=libc++"
export NIX_CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
export NIX_CXXSTDLIB_LINK=" -lc++ -lc++abi"

View File

@ -3667,7 +3667,7 @@ let
libc = glibc;
binutils = binutils;
inherit coreutils zlib;
extraPackages = [ libcxx ];
extraPackages = [ libcxx libcxxabi ];
nativeTools = false;
nativeLibc = false;
};