diff --git a/packaging/macosx/osx-app.sh.in b/packaging/macosx/osx-app.sh.in index b0b00f4ba2..24e6e18fbd 100755 --- a/packaging/macosx/osx-app.sh.in +++ b/packaging/macosx/osx-app.sh.in @@ -178,6 +178,9 @@ while $endl; do # # replace "@rpath/libsnappy" with "/usr/local/lib/libssnappy" so that # it isn't excluded from subsequent filtering. + # + # replace "@rpath/libpcre2" with "/usr/local/lib/libpcre2" so that + # it isn't excluded from subsequent filtering. # replace "\tlibbrotli" with "\t/usr/local/lib/libbrotli" so that # it isn't excluded from subsequent filtering. @@ -200,6 +203,7 @@ while $endl; do otool -L $bundle_binary_list "$pkglib"/*.dylib 2>/dev/null \ | grep -F compatibility \ | cut -d\( -f1 \ + | sed '1,$s;^ @rpath/libpcre2; /usr/local/lib/libpcre2;' \ | sed '1,$s;^ @rpath/libsnappy; /usr/local/lib/libsnappy;' \ | sed '1,$s;^ @rpath/libssh; /usr/local/lib/libssh;' \ | sed '1,$s;^ libbrotli; /usr/local/lib/libbrotli;' \