]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
opcodes: link against libbfd.la for rpath deps users/gentoo/2.28
authorMike Frysinger <vapier@gentoo.org>
Tue, 5 Jul 2016 14:39:00 +0000 (20:24 +0545)
committerMike Frysinger <vapier@gentoo.org>
Fri, 3 Mar 2017 18:03:25 +0000 (11:03 -0700)
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

opcodes/configure
opcodes/configure.ac

index be87eb22a5f004e972dce7e8f0e6c2844e3edddb..19528bef69068602807eaead6f16f796d32094f7 100755 (executable)
@@ -12561,7 +12561,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"
index b9f5eb8a4fdf396ff371bbfcec35981ac2c6735b..b5ff57a341ea4b0191207d53ab11df7ef6897195 100644 (file)
@@ -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"