Author: wyoung
Date: Mon Aug 7 20:53:12 2006
New Revision: 1318
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1318&view=rev
Log:
Added OS X support to examples/exrun
Modified:
trunk/examples/exrun
Modified: trunk/examples/exrun
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/exrun?rev=1318&r1=1317&r2=1318&view=diff
==============================================================================
--- trunk/examples/exrun (original)
+++ trunk/examples/exrun Mon Aug 7 20:53:12 2006
@@ -6,4 +6,13 @@
PROG=$1
shift
-LD_LIBRARY_PATH=../lib ./$PROG $*
+
+if [ -e /usr/bin/ldd ]
+then
+ LD_LIBRARY_PATH=../lib ./$PROG $*
+elif [ -e /usr/bin/otool ]
+then
+ DYLD_LIBRARY_PATH=../lib ./$PROG $*
+else
+ echo ERROR: I don\'t grok this system\'s dynamic linkage system.
+fi
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits