From: Ian Lance Taylor Date: Tue, 13 Feb 1996 20:33:12 +0000 (+0000) Subject: * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6acf0846acf31b06b52552a5db37a2e2b12c1c7;p=binutils-gdb.git * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 1a2371611cb..5fc08063bc0 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,7 @@ Tue Feb 13 14:04:19 1996 Ian Lance Taylor + * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared. + * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if it looks like we might be linking in two different versions of the same shared library. Based on a patch from H J Lu . diff --git a/ld/configure.host b/ld/configure.host index 8d43d7eea7b..9d0b6282a91 100644 --- a/ld/configure.host +++ b/ld/configure.host @@ -136,6 +136,9 @@ HLDFLAGS= # If we have shared libraries, try to set rpath reasonably. if test "${shared}" = "true"; then case "${host}" in + *-*-hpux*) + HLDFLAGS='-Wl,+s,+b,$(libdir)' + ;; *-*-irix5*) HLDFLAGS='-Wl,-rpath,$(libdir)' ;;