Skip to content

Commit a98356f

Browse files
committed
build: don't let libtool insert rpath into binaries
1 parent 8833acc commit a98356f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

configure.ac

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,3 +717,14 @@ AC_CONFIG_FILES([Makefile src/Makefile share/setup.nsi share/qt/Info.plist])
717717
AC_CONFIG_FILES([qa/pull-tester/run-bitcoind-for-test.sh],[chmod +x qa/pull-tester/run-bitcoind-for-test.sh])
718718
AC_CONFIG_FILES([qa/pull-tester/build-tests.sh],[chmod +x qa/pull-tester/build-tests.sh])
719719
AC_OUTPUT
720+
721+
dnl Taken from https://wiki.debian.org/RpathIssue
722+
case $host in
723+
*-*-linux-gnu)
724+
AC_MSG_RESULT([Fixing libtool for -rpath problems.])
725+
sed < libtool > libtool-2 \
726+
's/^hardcode_libdir_flag_spec.*$'/'hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
727+
mv libtool-2 libtool
728+
chmod 755 libtool
729+
;;
730+
esac

0 commit comments

Comments
 (0)