summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gnutls_rpath.pl6
-rw-r--r--src/modules/extra/gnutls_rpath.pl4
-rw-r--r--src/modules/extra/m_ssl_gnutls.cpp2
3 files changed, 5 insertions, 7 deletions
diff --git a/src/gnutls_rpath.pl b/src/gnutls_rpath.pl
deleted file mode 100644
index f47445581..000000000
--- a/src/gnutls_rpath.pl
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/perl
-$data = `libgnutls-config --libs`;
-$data =~ /-L(\S+)\s/;
-$libpath = $1;
-print "-Wl,--rpath -Wl,$libpath";
-
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` */