aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-10-21 17:14:08 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-10-21 17:14:08 +0000
commit1b90af266c5bf8ef4cfd5c09c79c468cfaf32c6a (patch)
tree060e7debfedcbfb8a2d9c987b50d07a3c93a95f1 /bfd/configure.in
parent3c2fb7bd5851452154a53ab5eff40f7549ab181e (diff)
downloadgdb-1b90af266c5bf8ef4cfd5c09c79c468cfaf32c6a.zip
gdb-1b90af266c5bf8ef4cfd5c09c79c468cfaf32c6a.tar.gz
gdb-1b90af266c5bf8ef4cfd5c09c79c468cfaf32c6a.tar.bz2
2001-10-21 H.J. Lu <hjl@gnu.org>
* configure.in (WIN32LIBADD): Check if PICFLAG is defined in ../libiberty/Makefile instead of $enable_shared. * configure: Rebuild.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index a52f57d..728811c 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -413,7 +413,11 @@ case "${host}" in
*)
# We borrow WIN32LIBADD so that the shared libbfd won't depend on
# libiberty.a.
- if test "$enable_shared" = "yes"; then
+ 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
;;