From: Mike Frysinger Date: Tue, 5 Jul 2016 14:39:00 +0000 (+0545) Subject: opcodes: link against libbfd.la for rpath deps X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fusers%2Fgentoo%2F2.27;p=thirdparty%2Fbinutils-gdb.git opcodes: link against libbfd.la for rpath deps The reason opcodes doesn't link against libbfd.la is to workaround a libtool bug where it uses installed -L paths ahead of DESTDIR paths. The downside is that the library itself lacks rpath tags to find the right version of libbfd.so. Since Gentoo has patched the libtool bug for a while, we don't need the workaround. Use the .la file so we get the rpath tags. URL: https://bugs.gentoo.org/563934 --- diff --git a/opcodes/configure b/opcodes/configure index 5a4da066746..256d38aca29 100755 --- a/opcodes/configure +++ b/opcodes/configure @@ -12517,7 +12517,7 @@ if test "$enable_shared" = "yes"; then SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}" ;; *) - SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}" + SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}" ;; esac SHARED_DEPENDENCIES="../bfd/libbfd.la" diff --git a/opcodes/configure.ac b/opcodes/configure.ac index c7f47837186..6e3b05f0d26 100644 --- a/opcodes/configure.ac +++ b/opcodes/configure.ac @@ -185,7 +185,7 @@ changequote([,])dnl SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}" ;; *) - SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}" + SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}" ;; esac SHARED_DEPENDENCIES="../bfd/libbfd.la"