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:
parent
e1af50c4c4
commit
172ed10426
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -3531,7 +3531,7 @@ let
|
||||
libc = glibc;
|
||||
binutils = binutils;
|
||||
inherit coreutils zlib;
|
||||
extraPackages = [ libcxx ];
|
||||
extraPackages = [ libcxx libcxxabi ];
|
||||
nativeTools = false;
|
||||
nativeLibc = false;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user