From 425337dbe02c0c79e8221fb22138940d4e497902 Mon Sep 17 00:00:00 2001 From: special Date: Tue, 21 Nov 2006 22:05:53 +0000 Subject: Fixed gnutls_rpath.pl to do rpath for all paths, not just gnutls - this fixes an issue with systems that want to use libgcrypt or libgpg-error in nonstandard locations git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5781 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/gnutls_rpath.pl | 6 ------ src/modules/extra/gnutls_rpath.pl | 4 ++++ src/modules/extra/m_ssl_gnutls.cpp | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 src/gnutls_rpath.pl create mode 100644 src/modules/extra/gnutls_rpath.pl (limited to 'src') 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` */ -- cgit v1.2.3