aclocal.m4: Added suggested changes to improve HP-UX's support for
authorTheodore Tso <tytso@mit.edu>
Mon, 25 May 1998 02:10:46 +0000 (02:10 +0000)
committerTheodore Tso <tytso@mit.edu>
Mon, 25 May 1998 02:10:46 +0000 (02:10 +0000)
shared libraries.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10581 dc483132-0cff-0310-8789-dd5450dbe970

src/ChangeLog
src/aclocal.m4

index 6ba0b1bed7195ab86158c0298e0b3e8ae138080e..2cf1c2a52f301f1680f7d3969474bb05a132f696 100644 (file)
@@ -1,3 +1,8 @@
+Sun May 24 22:09:12 1998  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * aclocal.m4: Added suggested changes to improve HP-UX's support
+               for shared libraries.
+
 1998-05-06  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * aclocal.m4 (CONFIG_RELTOPDIR): Add support for generic file
index 76097f84c14b701ee278307543feced17f194cf5..3371e8ba56e0a60a08accbae98f2a469863b4c97 100644 (file)
@@ -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*)