From 2a291c331fba316c3510b6dbaf973202bb99a49e Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 23 Jul 2006 11:02:19 +0000 Subject: Move mysql_rpath into extra git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4527 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_mysql.cpp | 2 +- src/modules/extra/mysql_rpath.pl | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/modules/extra/mysql_rpath.pl (limited to 'src/modules/extra') diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 9679f9cef..9c8e43a31 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -30,7 +30,7 @@ using namespace std; /* $ModDesc: SQL Service Provider module for all other m_sql* modules */ /* $CompileFlags: `mysql_config --include` */ -/* $LinkerFlags: `mysql_config --libs_r` `perl ../mysql_rpath.pl` */ +/* $LinkerFlags: `mysql_config --libs_r` `perl extra/mysql_rpath.pl` */ /* THE NONBLOCKING MYSQL API! * diff --git a/src/modules/extra/mysql_rpath.pl b/src/modules/extra/mysql_rpath.pl new file mode 100644 index 000000000..befa45a82 --- /dev/null +++ b/src/modules/extra/mysql_rpath.pl @@ -0,0 +1,6 @@ +#!/usr/bin/perl +$data = `mysql_config --libs_r`; +$data =~ /-L(\S+)\s/; +$libpath = $1; +print "-Wl,--rpath -Wl,$libpath"; + -- cgit v1.2.3