summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-15 13:33:18 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-15 13:33:18 +0000
commitd94a547367e7dbd8c31a75b4992a24e681f42433 (patch)
tree364179606d9c7ccbed4b1310a99c894e99aa7c56
parentad145d8789c75eab8a266ee7c6ce609626c5fb9a (diff)
Helper script for rpath of mysql
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4008 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/mysql_rpath.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mysql_rpath.pl b/src/mysql_rpath.pl
new file mode 100644
index 000000000..33da4f353
--- /dev/null
+++ b/src/mysql_rpath.pl
@@ -0,0 +1,6 @@
+#!/usr/bin/perl
+$data = `mysql_config --libs`;
+$data =~ /-L(\S+)\s/;
+$libpath = $1;
+print "-Wl,--rpath -Wl,$libpath";
+