Re: Fix for HP-UX shared library builds

From: Giles Lean <giles(at)nemeton(dot)com(dot)au>
To: pgsql-patches(at)postgresql(dot)org
Subject: Re: Fix for HP-UX shared library builds
Date: 2003-01-07 04:04:38
Message-ID: 11011.1041912278@hpchs.cup.hp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


I wrote:

> Below is a patch against 7.3.1 that makes shared library major numbers
> useful on HP-UX.

Here is a revised version of the patch, changed per a suggestion of
Peter Eisentraut's to use +h $(soname) instead of +h $(shlib) in the
link command.

Peter's other question about old HP-UX versions was answered by Tom
Lane:

> ifeq ($(PORTNAME), hpux)
> ! # HPUX doesn't believe in version numbers for shlibs

Peter> Once upon the time this was true. When did it change, and do we still
Peter> care about the pre-change versions?

Tom> I believe I put in the comment, back when I was running HPUX
Tom> 9.something. I concur with Giles that it's unlikely anyone cares
Tom> about 9.x anymore.

Nobody has spoken up to say they use HP-UX 9.X.

Will someone apply this patch please? I recommend it be applied to
the 7.3.x branch as well as HEAD as it will ease upgrading to 7.4
if there is ever a 7.3.2 release.

Regards,

Giles

*** src/Makefile.shlib-7.3.1 Thu Oct 10 02:21:54 2002
--- src/Makefile.shlib Tue Jan 7 09:25:40 2003
***************
*** 126,134 ****
endif

ifeq ($(PORTNAME), hpux)
! # HPUX doesn't believe in version numbers for shlibs
! shlib := lib$(NAME)$(DLSUFFIX)
! LINK.shared = $(LD) -b +b $(libdir)
endif

ifeq ($(PORTNAME), irix5)
--- 126,133 ----
endif

ifeq ($(PORTNAME), hpux)
! shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
! LINK.shared = $(LD) +h $(soname) -b +b $(libdir)
endif

ifeq ($(PORTNAME), irix5)

--
Giles Lean

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-01-07 04:25:10 Docs for service file
Previous Message Bruce Momjian 2003-01-06 22:45:22 IPv6 cleanups