(macOS) Fixed a missing rpath entry for a dependency library

This commit is contained in:
Leon Styhre 2023-06-25 22:53:26 +02:00
parent 43e4310a17
commit 0c035a2396

View file

@ -81,6 +81,12 @@ rm -rf builddir
PKG_CONFIG_PATH=$(pwd)/../local_install/lib/pkgconfig meson setup --buildtype=release --prefix $(pwd)/../local_install builddir PKG_CONFIG_PATH=$(pwd)/../local_install/lib/pkgconfig meson setup --buildtype=release --prefix $(pwd)/../local_install builddir
cd builddir cd builddir
meson compile meson compile
# This will fail if there are spaces in the build path.
cd src
install_name_tool -change $(otool -L libfontconfig.1.dylib | grep libfreetype | cut -f1 -d' ' | sed 's/[[:blank:]]//g') @rpath/libfreetype.6.dylib libfontconfig.1.dylib
cd ..
meson install meson install
cp src/libfontconfig.1.dylib ../../../ cp src/libfontconfig.1.dylib ../../../
cd ../.. cd ../..