mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
libc++: Fix on Linux
On Linux (unlike Darwin), libc++ cannot automatically propagate libc++abi. So we need to add libc++abi to the RPATH.
This commit is contained in:
parent
a4619673b5
commit
3ac28c3645
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.abi = libcxxabi;
|
||||
inherit libcxxabi;
|
||||
|
||||
# Remove a Makefile that causes many retained dependencies.
|
||||
postInstall = "rm $out/include/c++/v1/Makefile";
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -isystem @out@/include/c++/v1 -stdlib=libc++"
|
||||
NIX_CFLAGS_LINK="$NIX_CFLAGS_LINK -stdlib=libc++"
|
||||
export NIX_CFLAGS_COMPILE+=" -isystem @out@/include/c++/v1 -stdlib=libc++"
|
||||
export NIX_CFLAGS_LINK+=" -stdlib=libc++ -Wl,-rpath,@libcxxabi@/lib"
|
||||
|
|
Loading…
Reference in a new issue