Skip to content

Commit

Permalink
Add $ORIGIN/../lib as a default rpath for binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
probonopd authored Oct 23, 2021
1 parent 25707dc commit 4d29767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions makebundle
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ for FILE in $(find "${APPLICATION_NAME}".app/Resources/usr/local/bin/ -type f);
ORIG_RPATH=$(patchelf --print-rpath "${FILE}" 2>/dev/null)
if [ -n "${ORIG_RPATH}" ] ; then
MOD_RPATH=$(echo "${ORIG_RPATH}" | sed -e 's|/usr/local|\$ORIGIN/../|g')
echo patchelf --set-rpath "${MOD_RPATH}:${ORIG_RPATH}" "${FILE}"
patchelf --set-rpath "${MOD_RPATH}:${ORIG_RPATH}" "${FILE}"
echo patchelf --set-rpath "\$ORIGIN/../lib:${MOD_RPATH}:${ORIG_RPATH}" "${FILE}"
patchelf --set-rpath "\$ORIGIN/../lib:${MOD_RPATH}:${ORIG_RPATH}" "${FILE}"
fi
done

Expand Down

0 comments on commit 4d29767

Please sign in to comment.