summaryrefslogtreecommitdiffstats
path: root/src/config/lib.in
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2005-03-25 21:36:55 +0000
committerKen Raeburn <raeburn@mit.edu>2005-03-25 21:36:55 +0000
commit45e3030774b1b61c23a5fdd21b3c6be79c5b1cfd (patch)
tree32c0e61c0330fcbe9af99959f9e3b3a6f356a2a4 /src/config/lib.in
parenta413400cb98d2aeba576762ee445560da03e9d55 (diff)
downloadkrb5-45e3030774b1b61c23a5fdd21b3c6be79c5b1cfd.tar.gz
krb5-45e3030774b1b61c23a5fdd21b3c6be79c5b1cfd.tar.xz
krb5-45e3030774b1b61c23a5fdd21b3c6be79c5b1cfd.zip
shared library support for HP-UX 10
Our somewhat outdated HP-UX support (which was targeted at HP-UX 10, not 11) does not have support for shared library initialization and finalization functions, nor for shared library export lists. The former was causing compilation failures unless shared library support was disabled. * include/k5-platform.h: Expand on init/fini comments some more. (MAKE_FINI_FUNCTION): Add an HP-UX specific variant that defines an auxiliary function fitting the signature of HP-UX 10 library combined initializer/finalizer functions. * config/lib.in (hpux10.exports): New target, constructed similar to osf1.exports but with HP-UX 10.x linker options, no initializers, and "errno" explicitly added to the export list. * shlib.conf (*-*-hpux*): Combine PICFLAGS setting with SHLIB_EXPFLAGS and LDCOMBINE setting. Add linker option "-c hpux10.exports" to LDCOMBINE. Set SHLIB_EXPORT_FILE_DEP to hpux10.exports. Set use_linker_fini_option. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17153 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/config/lib.in')
-rw-r--r--src/config/lib.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config/lib.in b/src/config/lib.in
index eea4601d59..ef159f528c 100644
--- a/src/config/lib.in
+++ b/src/config/lib.in
@@ -72,6 +72,18 @@ osf1.exports: $(SHLIB_EXPORT_FILE) Makefile
done; echo " $$a" >> osf1.tmp; \
mv -f osf1.tmp osf1.exports
+hpux10.exports: $(SHLIB_EXPORT_FILE) Makefile
+ $(RM) hpux10.tmp hpux10.exports
+ sed "s/^/+e /" < $(SHLIB_EXPORT_FILE) > hpux10.tmp
+ a=""; \
+ for f in . $(LIBFINIFUNC); do \
+ if test "$$f" != .; then \
+ a="+I $${f}__auxfini $$a"; \
+ else :; fi; \
+ done; echo "$$a" >> hpux10.tmp
+ echo "+e errno" >> hpux10.tmp
+ mv -f hpux10.tmp hpux10.exports
+
lib$(LIBBASE)$(PFLIBEXT): $(PFOBJLISTS)
$(RM) $@
@echo "building profiled $(LIBBASE) library"