diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index d00fda1108..88a8af7fc3 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -450,7 +450,7 @@ while [ true ] ; do if test x$STRIP != x ; then # NSS is dynamically loaded, symbols cannot be stripped - if test "$file" = "libnspr4.dylib" -o "$file" = "libplds4.dylib"; then + if test "`basename $file`" = "libnspr4.dylib" -o "`basename $file`" = "libplds4.dylib"; then # only remove debug and local symbols strip -S -x -u -r -arch all $file &>/dev/null else