aboutsummaryrefslogtreecommitdiff
path: root/gprof/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-06-24 16:04:19 +0000
committerIan Lance Taylor <ian@airs.com>1996-06-24 16:04:19 +0000
commit8530ae8eedcd31832f307e697a56fd2e212cadba (patch)
tree579146ff4f023ffb560427e8d7d9cc6b75d3a724 /gprof/configure.in
parentb290fd252e4c01c8540dc12b06d5ae05a958028b (diff)
downloadfsf-binutils-gdb-8530ae8eedcd31832f307e697a56fd2e212cadba.zip
fsf-binutils-gdb-8530ae8eedcd31832f307e697a56fd2e212cadba.tar.gz
fsf-binutils-gdb-8530ae8eedcd31832f307e697a56fd2e212cadba.tar.bz2
* configure.in: On alpha*-*-osf*, link against libbfd.a if not
using shared libraries. * configure: Rebuild with autoconf 2.10.
Diffstat (limited to 'gprof/configure.in')
-rw-r--r--gprof/configure.in22
1 files changed, 17 insertions, 5 deletions
diff --git a/gprof/configure.in b/gprof/configure.in
index 4b0a616..d10dcd9 100644
--- a/gprof/configure.in
+++ b/gprof/configure.in
@@ -33,15 +33,27 @@ AC_SUBST(MY_TARGET)
BFDLIB='-L../bfd -lbfd'
# We need to handle some special cases if BFD was built shared.
-if test "${shared}" = "true"; then
- case "${host}" in
+case "${host}" in
*-*-sunos*)
# On SunOS, we must link against the name we are going to install,
# not -lbfd, since SunOS does not support SONAME.
- BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
+ if test "${shared}" = "true"; then
+ BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
+ fi
;;
- esac
-fi
+alpha*-*-osf*)
+ # On Alpha OSF/1, the native linker searches all the -L
+ # directories for any LIB.so files, and only then searches for any
+ # LIB.a files. That means that if there is an installed
+ # libbfd.so, but this build is not done with --enable-shared, the
+ # link will wind up being against the install libbfd.so rather
+ # than the newly built libbfd. To avoid this, we must explicitly
+ # link against libbfd.a when --enable-shared is not used.
+ if test "${shared}" != "true"; then
+ BFDLIB='../bfd/libbfd.a'
+ fi
+ ;;
+esac
AC_SUBST(BFDLIB)
HLDFLAGS=