From: Theodore Tso Date: Mon, 25 May 1998 02:10:46 +0000 (+0000) Subject: aclocal.m4: Added suggested changes to improve HP-UX's support for X-Git-Tag: krb5-1.1-beta1~712 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=951aa2cae456e86b65b61419d309e78c916bd77a;p=krb5.git aclocal.m4: Added suggested changes to improve HP-UX's support for shared libraries. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10581 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index 6ba0b1bed..2cf1c2a52 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Sun May 24 22:09:12 1998 Theodore Y. Ts'o + + * aclocal.m4: Added suggested changes to improve HP-UX's support + for shared libraries. + 1998-05-06 Theodore Ts'o * aclocal.m4 (CONFIG_RELTOPDIR): Add support for generic file diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 76097f84c..3371e8ba5 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -988,15 +988,25 @@ alpha-dec-osf*) RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`:$(PROG_RPATH):/usr/shlib:/usr/ccs/lib:/usr/lib/cmplrs/cc:/usr/lib:/usr/local/lib; export LD_LIBRARY_PATH; _RLD_ROOT=/dev/dummy/d; export _RLD_ROOT;' ;; -# untested... +# HPUX untested... +# +# Note: "-Wl,+s" when building executables enables the use of the +# SHLIB_PATH environment variable for finding shared libraries +# in non-standard directories. If a non-standard search-path for +# shared libraries is compiled into the executable (using +# -Wl,+b,$KRB5_SHLIBDIR), then the order of "-Wl,+b,..." and "-Wl,+s" +# on the commandline of the linker will determine which path +# (compiled-in or SHLIB_PATH) will be searched first. +# *-*-hpux*) + PICFLAGS=+z SHLIBEXT=.sl SHLIBVEXT='.sl.$(LIBMAJOR).$(LIBMINOR)' SHLIB_EXPFLAGS='+b $(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' LDCOMBINE='ld -b' - CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -Wl,+b,$(PROG_RPATH)' + CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -Wl,+s -Wl,+b,$(PROG_RPATH)' CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)' - RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;' + RUN_ENV='SHLIB_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export SHLIB_PATH;' ;; mips-sgi-irix*)