mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
llvm-3.8: build shared library on darwin (#17671)
- Enable the shared library build on darwin by default to match other platforms. - Fix the dylib file's name in the store - Symlink a versioned name as some tooling expects this.
This commit is contained in:
parent
75bffa11d6
commit
29572c28a3
@ -14,7 +14,7 @@
|
|||||||
, compiler-rt_src
|
, compiler-rt_src
|
||||||
, libcxxabi
|
, libcxxabi
|
||||||
, debugVersion ? false
|
, debugVersion ? false
|
||||||
, enableSharedLibraries ? !stdenv.isDarwin
|
, enableSharedLibraries ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -69,6 +69,11 @@ in stdenv.mkDerivation rec {
|
|||||||
paxmark m bin/{lli,llvm-rtdyld}
|
paxmark m bin/{lli,llvm-rtdyld}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = stdenv.lib.optionalString (stdenv.isDarwin && enableSharedLibraries) ''
|
||||||
|
install_name_tool -id $out/lib/libLLVM.dylib $out/lib/libLLVM.dylib
|
||||||
|
ln -s $out/lib/libLLVM.dylib $out/lib/libLLVM-${version}.dylib
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
passthru.src = src;
|
passthru.src = src;
|
||||||
|
Loading…
Reference in New Issue
Block a user