graalvmCEPackages.buildGraalvmProduct: link languages .so to $out/lib
This commit is contained in:
parent
1e39bda357
commit
3a53307dd9
2 changed files with 11 additions and 4 deletions
|
@ -74,6 +74,17 @@ stdenv.mkDerivation ({
|
|||
runHook postUnpack
|
||||
'';
|
||||
|
||||
# Allow autoPatchelf to automatically fix lib references between products
|
||||
fixupPhase = ''
|
||||
runHook preFixup
|
||||
|
||||
mkdir -p $out/lib
|
||||
shopt -s globstar
|
||||
ln -s $out/languages/**/lib/*.so $out/lib
|
||||
|
||||
runHook postFixup
|
||||
'';
|
||||
|
||||
dontInstall = true;
|
||||
dontBuild = true;
|
||||
dontStrip = true;
|
||||
|
|
|
@ -10,10 +10,6 @@ graalvmCEPackages.buildGraalvmProduct rec {
|
|||
inherit src javaVersion version;
|
||||
product = "llvm-installable-svm";
|
||||
|
||||
postUnpack = ''
|
||||
ln -s $out/languages/llvm/native/lib/*.so $out/lib
|
||||
'';
|
||||
|
||||
# TODO: improve this test
|
||||
graalvmPhases.installCheckPhase = ''
|
||||
echo "Testing llvm"
|
||||
|
|
Loading…
Reference in a new issue