From 27d6f7e7cb82be0fe35a899590a1196c7926d403 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 4 Feb 2006 09:57:43 +0000 Subject: [PATCH] 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 --- src/gnutls_rpath.pl | 6 ++++++ src/modules/extra/m_ssl_gnutls.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/gnutls_rpath.pl 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 }; -- 2.39.2