aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2021-11-14 17:05:59 -0800
committerGerald Combs <gerald@wireshark.org>2021-11-14 17:06:38 -0800
commite3159ae6310ee52148a4299a7085bf1d8c86f189 (patch)
tree2afbe514a54dfae9a0937ada0e32777d9f9556d5 /packaging
parentd8e33efb3c7e4ef5de4835d24cb8b63ff5b043f4 (diff)
macOS: Add a workaround for libpcre2.
Work around an issue with libpcre2 similar to what we do for libsnappy and libssh.
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macosx/osx-app.sh.in4
1 files changed, 4 insertions, 0 deletions
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;' \