Tweak OSX packaging, don't strip NSS libs
This fixes i386 optimized builds: ``` dyld: Symbol not found: _PL_CompareValues Referenced from: /Volumes/Ardour-6.5.86/Ardour6.app/Contents/MacOS/../lib/libnssutil3.dylib Expected in: /Volumes/Ardour-6.5.86/Ardour6.app/Contents/MacOS/../lib/libplds4.dylib in /Volumes/Ardour-6.5.86/Ardour6.app/Contents/MacOS/../lib/libnssutil3.dylib ```
This commit is contained in:
parent
20bdc394f4
commit
b934663c26
@ -444,12 +444,18 @@ while [ true ] ; do
|
||||
continue
|
||||
fi
|
||||
# libffi contains "S" (other section symbols) that should not be stripped.
|
||||
if [[ $file == *"libffi"* ]] ; then
|
||||
if [[ $file = *"libffi"* ]] ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
if test x$STRIP != x ; then
|
||||
strip -u -r -arch all $file &>/dev/null
|
||||
# NSS is dynamically loaded, symbols cannot be stripped
|
||||
if [[ $file = "libnspr4.dylib" -o $file = "libplds4.dylib" ]] ; then
|
||||
# only remove debug and local symbols
|
||||
strip -S -x -u -r -arch all $file &>/dev/null
|
||||
else
|
||||
strip -u -r -arch all $file &>/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
deps=`otool -L $file | awk '{print $1}' | egrep "($GTKSTACK_ROOT|/opt/|/local/|libs/$STDCPP)" | grep -v 'libjack\.' | grep -v "$(basename $file)"`
|
||||
|
Loading…
Reference in New Issue
Block a user