From 43057c7a276a63ad853eb2fcc5074487bd321539 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sat, 11 Jan 2003 17:22:19 +0000
Subject: [PATCH] Cause symlinks for shared-library versioning to run in the
 standard direction on HP-UX; our former approach has been obsolete since HPUX
 9.

Giles Lean
---
 src/Makefile.shlib | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index eaf341855f7..5e1f0aa2584 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -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)
-- 
GitLab