aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-10-21 06:51:03 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-10-21 06:51:03 +0000
commit396917629660bd05d9ab21e6d8339fd3081d9670 (patch)
treed6a21f3cce3087eac3943a4a27587971584c9bd1 /bfd/configure.in
parent7903fbf8490fcd5e8d6689708b61a2c5bc72f921 (diff)
downloadgdb-396917629660bd05d9ab21e6d8339fd3081d9670.zip
gdb-396917629660bd05d9ab21e6d8339fd3081d9670.tar.gz
gdb-396917629660bd05d9ab21e6d8339fd3081d9670.tar.bz2
2001-10-20 H.J. Lu <hjl@gnu.org>
* configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty if shared library is enabled. * configure: Rebuild.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index c952d9c..a52f57d 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -410,6 +410,13 @@ case "${host}" in
WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
fi
;;
+*)
+ # We borrow WIN32LIBADD so that the shared libbfd won't depend on
+ # libiberty.a.
+ if test "$enable_shared" = "yes"; then
+ WIN32LIBADD="-L../libiberty/pic -liberty"
+ fi
+ ;;
esac
AC_SUBST(WIN32LDFLAGS)
AC_SUBST(WIN32LIBADD)