graalvmCEPackages.buildGraalvmProduct: link languages .so to $out/lib

This commit is contained in:
Thiago Kenji Okada 2023-02-15 21:08:19 +00:00
parent 1e39bda357
commit 3a53307dd9
2 changed files with 11 additions and 4 deletions

View file

@ -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;

View file

@ -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"