X-Git-Url: https://repo.jachan.dev/binutils.git/blobdiff_plain/d40f3da9047364a8af792452aafac81fb5de5e74..0e3361806e70915db9de9188400cb4bfa76fc998:/opcodes/configure.in diff --git a/opcodes/configure.in b/opcodes/configure.in index 460d95dea9..08011be7fa 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