mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
graalvmXX-ce: fix in darwin by ensuring $lib/lib
always exist
This commit is contained in:
parent
b06d35b406
commit
2a5a6cfbb1
@ -169,6 +169,8 @@ let
|
|||||||
outputs = [ "out" "lib" ];
|
outputs = [ "out" "lib" ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
# ensure that $lib/lib exists to avoid breaking builds
|
||||||
|
mkdir -p "$lib/lib"
|
||||||
# jni.h expects jni_md.h to be in the header search path.
|
# jni.h expects jni_md.h to be in the header search path.
|
||||||
ln -s $out/include/linux/*_md.h $out/include/
|
ln -s $out/include/linux/*_md.h $out/include/
|
||||||
|
|
||||||
@ -194,7 +196,6 @@ let
|
|||||||
# `native-image -H:CLibraryPath=''${lib.getLib graalvmXX-ce}/lib ...` and reduce
|
# `native-image -H:CLibraryPath=''${lib.getLib graalvmXX-ce}/lib ...` and reduce
|
||||||
# closure size by not depending on GraalVM $out (that is much bigger)
|
# closure size by not depending on GraalVM $out (that is much bigger)
|
||||||
# we always use glibc here, since musl is only supported for static compilation
|
# we always use glibc here, since musl is only supported for static compilation
|
||||||
mkdir -p "$lib/lib"
|
|
||||||
for f in "${glibc}/lib/"*; do
|
for f in "${glibc}/lib/"*; do
|
||||||
ln -s "$f" "$lib/lib/$(basename $f)"
|
ln -s "$f" "$lib/lib/$(basename $f)"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user