summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rwxr-xr-xautogen.sh1
2 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 551238f94..c585434d6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -110,3 +110,6 @@ maintainer-clean-generic:
maintainer-clean-generic-hook:
rm -f config.status
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(srcdir) && $(AUTOCONF) && $(SED) -i -e '/gnu_ld/,/;;/ s/--rpath \$${wl}/--rpath,/' $@
diff --git a/autogen.sh b/autogen.sh
index ac99c9d98..f3ad2a99d 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -107,6 +107,7 @@ run_autoconf () {
echo $_echo_n " + Running autoconf: $_echo_c";
autoconf;
+ sed -i -e '/gnu_ld/,/;;/ s/--rpath \${wl}/--rpath,/' configure
echo "done."
}