forked from mirrors/nixpkgs
3ac28c3645
On Linux (unlike Darwin), libc++ cannot automatically propagate libc++abi. So we need to add libc++abi to the RPATH.
3 lines
144 B
Bash
3 lines
144 B
Bash
export NIX_CFLAGS_COMPILE+=" -isystem @out@/include/c++/v1 -stdlib=libc++"
|
|
export NIX_CFLAGS_LINK+=" -stdlib=libc++ -Wl,-rpath,@libcxxabi@/lib"
|