]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added gnutls_rpath.pl. This works out the lib dir and does:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 4 Feb 2006 09:57:43 +0000 (09:57 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 4 Feb 2006 09:57:43 +0000 (09:57 +0000)
-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

src/gnutls_rpath.pl [new file with mode: 0644]
src/modules/extra/m_ssl_gnutls.cpp

diff --git a/src/gnutls_rpath.pl b/src/gnutls_rpath.pl
new file mode 100644 (file)
index 0000000..f474455
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/perl
+$data = `libgnutls-config --libs`;
+$data =~ /-L(\S+)\s/;
+$libpath = $1;
+print "-Wl,--rpath -Wl,$libpath";
+
index 12ecf18ebe384e5134f32ea2a34d446899077224..50a751412a35c3d04bc838cf167f4caf78761767 100644 (file)
@@ -13,7 +13,7 @@
 
 /* $ModDesc: Provides SSL support for clients */
 /* $CompileFlags: `libgnutls-config --cflags` */
-/* $LinkerFlags: `libgnutls-config --libs` */
+/* $LinkerFlags: `libgnutls-config --libs` `perl ../gnutls_rpath.pl` */
 
 enum issl_status { ISSL_NONE, ISSL_HANDSHAKING_READ, ISSL_HANDSHAKING_WRITE, ISSL_HANDSHAKEN, ISSL_CLOSING, ISSL_CLOSED };