From b08951a43ec89effc0a8b3ffd421f0004355363b Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 26 Aug 2009 08:54:39 +0000 Subject: [PATCH] Attempt to fix rpath issue on linux platform (it is already deprecated in main distributions. i.e. http://wiki.debian.org/RpathIssue) --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 6143404..4024dab 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,16 @@ AM_INIT_AUTOMAKE AC_LANG_C AC_PROG_CC AC_PROG_MAKE_SET + +# Libtool AC_PROG_LIBTOOL +case "$host" in + *-pc-linux-gnu) + AC_MSG_RESULT([Fixing libtool for -rpath problems.]) + sed -i -r 's/(hardcode_into_libs)=.*$/\1=no/' libtool + ;; +esac + AC_PROG_RANLIB AC_PATH_PROG(PKG_CONFIG, pkg-config)