OSX bundle libstdc++ for 10.5 support
authorRobin Gareus <robin@gareus.org>
Wed, 22 Jul 2015 09:50:26 +0000 (11:50 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 22 Jul 2015 09:50:26 +0000 (11:50 +0200)
see #6456 and
http://stackoverflow.com/questions/6365772/unable-to-run-an-application-compiled-on-os-x-snow-leopard-10-6-7-on-another-m

hopefully this won’t break plugins which may link against
against the /usr/lib/ version. we’ll see.

tools/osx_packaging/osx_build

index 6ee39f626ed50fbc6b863ba9f18593c38f539ac2..a18cc71f5f3e34bde2164ea6e4d209106fe30f70 100755 (executable)
@@ -419,7 +419,7 @@ while [ true ] ; do
                strip -u -r -arch all $file &>/dev/null
        fi
 
-       deps=`otool -L $file | awk '{print $1}' | egrep "($GTKSTACK_ROOT|$ARDOURSTACK_ROOT|/opt/|/local/|libs/)" | grep -v 'libjack\.' | grep -v "$(basename $file)"`
+       deps=`otool -L $file | awk '{print $1}' | egrep "($GTKSTACK_ROOT|$ARDOURSTACK_ROOT|/opt/|/local/|libs/|libstdc\+\+)" | grep -v 'libjack\.' | grep -v "$(basename $file)"`
        # echo -n "."
        for dep in $deps ; do
            base=`basename $dep`