summaryrefslogtreecommitdiff
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
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
-rw-r--r--src/gnutls_rpath.pl6
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp2
2 files changed, 7 insertions, 1 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";
+
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp
index 12ecf18eb..50a751412 100644
--- a/src/modules/extra/m_ssl_gnutls.cpp
+++ b/src/modules/extra/m_ssl_gnutls.cpp
@@ -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 };