Skip to content

Commit 6cc8e38

Browse files
authored
do not rely on rpath
1 parent d2f8aec commit 6cc8e38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

make-appimage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ rm -f \
3030
cp -v /usr/bin/opencode ./AppDir/bin/opencode
3131
ln -s opencode ./AppDir/bin/opencode-cli
3232
patchelf --set-interpreter /tmp/"$kek" ./AppDir/bin/opencode
33-
patchelf --set-rpath '$ORIGIN/../lib' ./AppDir/bin/opencode
3433

3534
cat <<EOF > ./AppDir/bin/random-linker.src.hook
3635
#!/bin/sh
3736
cp -f "\$APPDIR"/shared/lib/ld-linux*.so* /tmp/"$kek"
37+
export LD_LIBRARY_PATH="\$APPDIR/shared/lib:\$LD_LIBRARY_PATH"
3838
EOF
3939
chmod +x ./AppDir/bin/*.hook
4040

0 commit comments

Comments
 (0)