Skip to content

Commit f043f10

Browse files
committed
fix data/scripts/macos_bundle_libs.sh
the former failed on Mac OS X 10.11 with: `sed: 1: "/LC_RPATH/,+2p": expected context address`. The '+2' address seem to be GNU extension, although supported by current macOSes (and busybox). see also <https://stackoverflow.com/questions/26124650/sed-use-expected-context-address>
1 parent 663f5d8 commit f043f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/scripts/macos_bundle_libs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ done
3333

3434
## output number of $rpath occurences in 'cmd LC_RPATH'
3535
num_rel_lc_rpath() {
36-
otool -l "$1" | sed -n '/LC_RPATH/,+2p' | grep -c "$rpath" || true
36+
otool -l "$1" | sed -n '/LC_RPATH/{N;N;p;}' | grep -c "$rpath" || true
3737
}
3838

3939
find "$bundle" -type f -print0 |

0 commit comments

Comments
 (0)