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
b875ea5d29
commit
19f371d8d9
@ -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"
|
||||
|
@ -3667,7 +3667,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