Cause symlinks for shared-library versioning to run in the standard
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Jan 2003 17:22:19 +0000 (17:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 11 Jan 2003 17:22:19 +0000 (17:22 +0000)
direction on HP-UX; our former approach has been obsolete since HPUX 9.

Giles Lean

src/Makefile.shlib

index eaf341855f732895eaa63f65c0168cc3c34a2c6e..5e1f0aa258443e8c63f06506976b7572000994e4 100644 (file)
@@ -6,7 +6,7 @@
 # Copyright (c) 1998, Regents of the University of California
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.65 2002/10/09 16:21:54 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.66 2003/01/11 17:22:19 tgl Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -126,9 +126,8 @@ ifeq ($(PORTNAME), netbsd)
 endif
 
 ifeq ($(PORTNAME), hpux)
-# HPUX doesn't believe in version numbers for shlibs
-  shlib            := lib$(NAME)$(DLSUFFIX)
-  LINK.shared      = $(LD) -b +b $(libdir)
+  shlib            := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
+  LINK.shared      = $(LD) +h $(soname) -b +b $(libdir)
 endif
 
 ifeq ($(PORTNAME), irix5)