diff options
author | Nick Clifton <nickc@redhat.com> | 2008-02-14 12:33:17 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-02-14 12:33:17 +0000 |
commit | 68b6926b8f3304494fee67abc1f498fe53fee6bb (patch) | |
tree | ac8c804a7dcf7df2ecb52c142bb18d1b6cf5bf7a /opcodes | |
parent | 0e96f18e68260a1760759fd6bd3b363274c7b4a6 (diff) | |
download | gdb-68b6926b8f3304494fee67abc1f498fe53fee6bb.tar.gz |
PR binutils/5524
* configure.in (SHARED_LIBADD): Select the correct host specific
file extension for shared libraries.
* configure: Regenerate.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 7 | ||||
-rwxr-xr-x | opcodes/configure | 13 | ||||
-rw-r--r-- | opcodes/configure.in | 13 |
3 files changed, 31 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index d6a245a8c25..d750f8f49d6 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,10 @@ +2008-02-14 Nick Clifton <nickc@redhat.com> + + PR binutils/5524 + * configure.in (SHARED_LIBADD): Select the correct host specific + file extension for shared libraries. + * configure: Regenerate. + 2008-02-13 Jan Beulich <jbeulich@novell.com> * i386-opc.h (RegFlat): New. diff --git a/opcodes/configure b/opcodes/configure index 84b2a227381..80b1a7435ea 100755 --- a/opcodes/configure +++ b/opcodes/configure @@ -11453,8 +11453,19 @@ if test "$enable_shared" = "yes"; then SHARED_LDFLAGS="-no-undefined" SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" ;; + *-*-darwin*) + SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib" + SHARED_DEPENDENCIES="../bfd/libbfd.la" + ;; *) - SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so" + case "$host_vendor" in + hp) + SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl" + ;; + *) + SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so" + ;; + esac SHARED_DEPENDENCIES="../bfd/libbfd.la" ;; esac diff --git a/opcodes/configure.in b/opcodes/configure.in index 460d95dea92..08011be7faf 100644 --- a/opcodes/configure.in +++ b/opcodes/configure.in @@ -107,8 +107,19 @@ if test "$enable_shared" = "yes"; then SHARED_LDFLAGS="-no-undefined" SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin" ;; + *-*-darwin*) + SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib" + SHARED_DEPENDENCIES="../bfd/libbfd.la" + ;; *) - SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so" + case "$host_vendor" in + hp) + SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl" + ;; + *) + SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so" + ;; + esac SHARED_DEPENDENCIES="../bfd/libbfd.la" ;; esac |