Merge pull request #43645 from eadwu/glava/fix-patchelf-syntax

glava: adjust syntax in patchelf command
This commit is contained in:
Silvan Mosberger 2018-07-17 17:14:57 +02:00 committed by GitHub
commit 76e42081c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,8 +84,9 @@ in
mv $out/usr/bin/glava $out/bin/.glava-unwrapped
rm -rf $out/usr
patchelf $out/bin/.glava-unwrapped \
patchelf \
--set-rpath "$(patchelf --print-rpath $out/bin/.glava-unwrapped):${makeLibraryPath [ libGL ]}" \
$out/bin/.glava-unwrapped
substitute ${wrapperScript} $out/bin/glava --subst-var out
chmod +x $out/bin/glava