aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-10-22 18:45:35 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-10-22 18:45:35 +0000
commitca51bffffbbf5a55b088d3dc0437e7f95398fdf5 (patch)
tree6db80933ef249ca215da22a592b62ce83279eaff /bfd/configure.in
parent78be1d6e75a8aba8565e919acbdf292ea3341335 (diff)
downloadgdb-ca51bffffbbf5a55b088d3dc0437e7f95398fdf5.zip
gdb-ca51bffffbbf5a55b088d3dc0437e7f95398fdf5.tar.gz
gdb-ca51bffffbbf5a55b088d3dc0437e7f95398fdf5.tar.bz2
2001-10-22 H.J. Lu <hjl@gnu.org>
* configure.in (WIN32LIBADD): Use -L../libiberty for mips*-*-linux*. * configure: Rebuild.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in24
1 files changed, 17 insertions, 7 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index 042cf18..b660268 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -413,13 +413,23 @@ case "${host}" in
*-*-linux*)
# We borrow WIN32LIBADD so that the shared libbfd won't depend on
# libiberty.a.
- PICFLAG=
- changequote(,)dnl
- eval `grep "^[ ]*PICFLAG[ ]*=" ../libiberty/Makefile | sed -e "s/[ ]*//g"`
- changequote([,])dnl
- if test -n "$PICFLAG"; then
- WIN32LIBADD="-L../libiberty/pic -liberty"
- fi
+ case "${host}" in
+ mips*-*-linux*)
+ # Linux/MIPS uses PIC by default.
+ if test "$enable_shared" = "yes"; then
+ WIN32LIBADD="-L../libiberty -liberty"
+ fi
+ ;;
+ *)
+ PICFLAG=
+ changequote(,)dnl
+ eval `grep "^[ ]*PICFLAG[ ]*=" ../libiberty/Makefile | sed -e "s/[ ]*//g"`
+ changequote([,])dnl
+ if test -n "$PICFLAG"; then
+ WIN32LIBADD="-L../libiberty/pic -liberty"
+ fi
+ ;;
+ esac
;;
esac
AC_SUBST(WIN32LDFLAGS)