aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-04-19 04:18:06 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2012-04-19 04:18:06 +0000
commitb4ef04a54868e37e774e79af349dda7adab25f4e (patch)
tree58555731653bbfa983317f1eb76c2ca78e2923b9
parentb237db2c6fb12c926bf1b738fa0ff58f490018ca (diff)
switch to using @loader_path in dylibs to result in shorter paths, so we don't run into the error 'install_name_tool: changing install names can't be redone for: libvorbisenc.2.dylib (for architecture ppc) because larger updated load commands do not fit (the program must be relinked)'
svn path=/trunk/; revision=16127
-rwxr-xr-xpackages/darwin_app/embed-MacOSX-dependencies.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/darwin_app/embed-MacOSX-dependencies.sh b/packages/darwin_app/embed-MacOSX-dependencies.sh
index 0ac4363f..fe2884ec 100755
--- a/packages/darwin_app/embed-MacOSX-dependencies.sh
+++ b/packages/darwin_app/embed-MacOSX-dependencies.sh
@@ -72,7 +72,7 @@ for dylib in $PD_APP_LIB/*.dylib; do
fi
# @executable_path starts from Contents/Resources/bin/pd
install_name_tool -id @executable_path/../../$LIB_DIR/$new_lib $PD_APP_LIB/$new_lib
- install_name_tool -change /sw/lib/$lib @executable_path/../../$LIB_DIR/$new_lib $dylib
+ install_name_tool -change /sw/lib/$lib @loader_path/$new_lib $dylib
done
echo " "
fi
@@ -93,7 +93,7 @@ for dylib in $PD_APP_LIB/*.dylib; do
fi
# @executable_path starts from Contents/Resources/bin/pd
install_name_tool -id @executable_path/../../$LIB_DIR/$new_lib $PD_APP_LIB/$new_lib
- install_name_tool -change /sw/lib/$lib @executable_path/../../$LIB_DIR/$new_lib $dylib
+ install_name_tool -change /sw/lib/$lib @loader_path/$new_lib $dylib
done
echo " "
fi