mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Add runpath verification of deployed binaries and plugins
This commit is contained in:
parent
521ca59f15
commit
740d863f61
@ -895,6 +895,17 @@ convert_universal() {
|
||||
for arch in ${ARCH_LIST} ; do
|
||||
rm -f "${BUNDLE_PATH}"/*-${arch}
|
||||
done
|
||||
if [ -d "${QtInstallDir}/lib/QtCore.framework/Versions/${QtFrameworkVersion}" -a "yes" = "${qt_deployment}" ]; then
|
||||
echo Verify runtime path configuration
|
||||
for file in "${LyxAppPrefix}"/Contents/MacOS/*lyx* $(find "${LyxAppPrefix}"/Contents -name '*.dylib' -print) ; do
|
||||
echo Check "${file}"
|
||||
BAD_FRAMEWORKS=$(otool -L "${file}" | grep 'Qt.*framework' | grep -v '@rpath' | sort -u)
|
||||
if [ -n "${BAD_FRAMEWORKS}" ]; then
|
||||
echo Bad runtime path configuration in "${file}" for frameworks "${BAD_FRAMEWORKS}"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
# -------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user