diff options
Diffstat (limited to 'src/modules/extra')
-rw-r--r-- | src/modules/extra/gnutls_rpath.pl | 4 | ||||
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/extra/gnutls_rpath.pl b/src/modules/extra/gnutls_rpath.pl new file mode 100644 index 000000000..3371d5c8a --- /dev/null +++ b/src/modules/extra/gnutls_rpath.pl @@ -0,0 +1,4 @@ +#!/usr/bin/perl +$data = `libgnutls-config --libs`; +$data =~ s/-L(\S+)\s/-Wl,--rpath -Wl,$1 -L$1 /g; +print "$data"; diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index ad14da755..1921f78f1 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -18,7 +18,7 @@ /* $ModDesc: Provides SSL support for clients */ /* $CompileFlags: `libgnutls-config --cflags` */ -/* $LinkerFlags: `libgnutls-config --libs` `perl ../gnutls_rpath.pl` */ +/* $LinkerFlags: `perl extra/gnutls_rpath.pl` */ |