summaryrefslogtreecommitdiff
path: root/src/gnutls_rpath.pl
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-04 09:57:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-04 09:57:43 +0000
commit27d6f7e7cb82be0fe35a899590a1196c7926d403 (patch)
tree48209df297b2aaebe67ef836c5b4563f21762af5 /src/gnutls_rpath.pl
parent5278a9e733eda0a99b045874db5b824f8cc1d114 (diff)
Added gnutls_rpath.pl. This works out the lib dir and does:
-Wl,--rpath -Wl,/lib/dir and outputs it, the $LinkerFlags of gnutls ssl module use it in backticks during link, so you dont get missing lib error git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3069 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/gnutls_rpath.pl')
-rw-r--r--src/gnutls_rpath.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gnutls_rpath.pl b/src/gnutls_rpath.pl
new file mode 100644
index 000000000..f47445581
--- /dev/null
+++ b/src/gnutls_rpath.pl
@@ -0,0 +1,6 @@
+#!/usr/bin/perl
+$data = `libgnutls-config --libs`;
+$data =~ /-L(\S+)\s/;
+$libpath = $1;
+print "-Wl,--rpath -Wl,$libpath";
+