From 0c035a239672a5b53b9f76af3c4b572af8b6fafa Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 25 Jun 2023 22:53:26 +0200 Subject: [PATCH] (macOS) Fixed a missing rpath entry for a dependency library --- tools/macOS_dependencies_build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/macOS_dependencies_build.sh b/tools/macOS_dependencies_build.sh index 9d272b301..d6811d259 100755 --- a/tools/macOS_dependencies_build.sh +++ b/tools/macOS_dependencies_build.sh @@ -81,6 +81,12 @@ rm -rf builddir PKG_CONFIG_PATH=$(pwd)/../local_install/lib/pkgconfig meson setup --buildtype=release --prefix $(pwd)/../local_install builddir cd builddir 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 cp src/libfontconfig.1.dylib ../../../ cd ../..