Skip to content

Commit

Permalink
macOS script typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ssheorey committed Jan 7, 2025
1 parent 7fcdad4 commit 4a9ccfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/apps/fixup_macosx_bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fi

# Find the rpath paths
rpaths=$(otool -l "$exe" | grep "path " | awk '{print $2}')
if [[ $rpath != "" ]]; then
if [[ $rpaths != "" ]]; then
echo "@rpath:"
for rp in $rpaths; do
echo " $rp"
Expand All @@ -44,7 +44,7 @@ for lib in $libs; do
if [[ ${lib:0:1} != "@" ]]; then # external library with a regular path
libname=$(basename $lib)
# copy the external library, resolve symlink chain
cp -aRL "$lib" "$exeDir/$lib"
cp -aRL "$lib" "$exeDir/$libname"
# change its path in the executable
newpath="@executable_path/$libname"
echo "$lib -> $newpath"
Expand Down

0 comments on commit 4a9ccfd

Please sign in to comment.