diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-07-23 01:00:55 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2014-08-06 15:14:30 -0400 |
commit | a98356fee8a44d7d1cb37f22c876fff8f244365e (patch) | |
tree | bc736876d24432a9dc4a47e31f5167d28999316d | |
parent | 8833acc4c979877993f87c8fdc8a6d14cd072ba2 (diff) |
build: don't let libtool insert rpath into binaries
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 719b06da67..c0ade515ec 100644 --- a/configure.ac +++ b/configure.ac @@ -717,3 +717,14 @@ AC_CONFIG_FILES([Makefile src/Makefile share/setup.nsi share/qt/Info.plist]) AC_CONFIG_FILES([qa/pull-tester/run-bitcoind-for-test.sh],[chmod +x qa/pull-tester/run-bitcoind-for-test.sh]) AC_CONFIG_FILES([qa/pull-tester/build-tests.sh],[chmod +x qa/pull-tester/build-tests.sh]) AC_OUTPUT + +dnl Taken from https://wiki.debian.org/RpathIssue +case $host in + *-*-linux-gnu) + AC_MSG_RESULT([Fixing libtool for -rpath problems.]) + sed < libtool > libtool-2 \ + 's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/' + mv libtool-2 libtool + chmod 755 libtool + ;; +esac |