mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
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+=" -isystem @out@/include/c++/v1"
|
||||||
|
export NIX_CXXSTDLIB_LINK=" -lc++ -lc++abi"
|
||||||
export NIX_CXXSTDLIB_COMPILE=" -stdlib=libc++"
|
|
||||||
export NIX_CXXSTDLIB_LINK=" -stdlib=libc++"
|
|
||||||
|
@ -1,4 +1,2 @@
|
|||||||
export NIX_CFLAGS_COMPILE+=" -isystem @out@/include/c++/v1"
|
export NIX_CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
|
||||||
|
export NIX_CXXSTDLIB_LINK=" -lc++ -lc++abi"
|
||||||
export NIX_CXXSTDLIB_COMPILE=" -stdlib=libc++"
|
|
||||||
export NIX_CXXSTDLIB_LINK=" -stdlib=libc++"
|
|
||||||
|
@ -3531,7 +3531,7 @@ let
|
|||||||
libc = glibc;
|
libc = glibc;
|
||||||
binutils = binutils;
|
binutils = binutils;
|
||||||
inherit coreutils zlib;
|
inherit coreutils zlib;
|
||||||
extraPackages = [ libcxx ];
|
extraPackages = [ libcxx libcxxabi ];
|
||||||
nativeTools = false;
|
nativeTools = false;
|
||||||
nativeLibc = false;
|
nativeLibc = false;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user