diff options
author | Tom Yu <tlyu@mit.edu> | 2002-01-09 00:46:52 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2002-01-09 00:46:52 +0000 |
commit | 2357579e7d90ab9501620c206e95cfaaa471c0da (patch) | |
tree | 168ba5ecb0158d5b7aed07949489b0016aa61bd5 /src/config | |
parent | a4e7178b9f617c687d50bb427e2e79a5e54015d3 (diff) | |
download | krb5-2357579e7d90ab9501620c206e95cfaaa471c0da.tar.gz krb5-2357579e7d90ab9501620c206e95cfaaa471c0da.tar.xz krb5-2357579e7d90ab9501620c206e95cfaaa471c0da.zip |
* shlib.conf: Fix hpux to deal with building shared libs with gcc.
Patch from Doug Engert; fixes krb5-build/1021.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14096 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/ChangeLog | 5 | ||||
-rw-r--r-- | src/config/shlib.conf | 15 |
2 files changed, 17 insertions, 3 deletions
diff --git a/src/config/ChangeLog b/src/config/ChangeLog index 2f6902d99f..1cd7396d9f 100644 --- a/src/config/ChangeLog +++ b/src/config/ChangeLog @@ -5,6 +5,11 @@ * libobj.in (config.status): Depend on shlib.conf. +2001-12-18 Tom Yu <tlyu@mit.edu> + + * shlib.conf: Fix hpux to deal with building shared libs with gcc. + Patch from Doug Engert; fixes krb5-build/1021. + 2001-10-20 Ken Raeburn <raeburn@mit.edu> * post.in (DEPLIBOBJNAMEFIX): New variable. diff --git a/src/config/shlib.conf b/src/config/shlib.conf index 2b94ad77cc..d730d69a7d 100644 --- a/src/config/shlib.conf +++ b/src/config/shlib.conf @@ -50,13 +50,22 @@ alpha*-dec-osf*) # (compiled-in or SHLIB_PATH) will be searched first. # *-*-hpux*) - PICFLAGS=+z + if test "$krb5_cv_prog_gcc" = yes; then + PICFLAGS=-fPIC + else + PICFLAGS=+z + fi INSTALL_SHLIB='$(INSTALL)' SHLIBEXT=.sl SHLIBVEXT='.$(LIBMAJOR).$(LIBMINOR)' SHLIBSEXT='.$(LIBMAJOR)' - SHLIB_EXPFLAGS='+s +b $(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' - LDCOMBINE='ld -b +h lib$(LIB)$(SHLIBSEXT)' + if test "$krb5_cv_prog_gcc" = yes; then + SHLIB_EXPFLAGS='-Wl,+s -Wl,+b,$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' + LDCOMBINE='gcc -fPIC -shared -Wl,+h,lib$(LIB)$(SHLIBSEXT)' + else + SHLIB_EXPFLAGS='+s +b $(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' + LDCOMBINE='ld -b +h lib$(LIB)$(SHLIBSEXT)' + fi CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -Wl,+s -Wl,+b,$(PROG_RPATH)' CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)' RUN_ENV='SHLIB_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export SHLIB_PATH;' |