* configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.

This commit is contained in:
Ian Lance Taylor 1996-02-13 20:33:12 +00:00
parent fe7c066a10
commit b6acf0846a
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,7 @@
Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com> Tue Feb 13 14:04:19 1996 Ian Lance Taylor <ian@cygnus.com>
* configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
* emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed): Warn if
it looks like we might be linking in two different versions of the it looks like we might be linking in two different versions of the
same shared library. Based on a patch from H J Lu <hjl@zoom.com>. same shared library. Based on a patch from H J Lu <hjl@zoom.com>.

View File

@ -136,6 +136,9 @@ HLDFLAGS=
# If we have shared libraries, try to set rpath reasonably. # If we have shared libraries, try to set rpath reasonably.
if test "${shared}" = "true"; then if test "${shared}" = "true"; then
case "${host}" in case "${host}" in
*-*-hpux*)
HLDFLAGS='-Wl,+s,+b,$(libdir)'
;;
*-*-irix5*) *-*-irix5*)
HLDFLAGS='-Wl,-rpath,$(libdir)' HLDFLAGS='-Wl,-rpath,$(libdir)'
;; ;;