Re: [HACKERS] HP-UX PA-RISC/Itanium 64-bit Patch and HP-UX - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] HP-UX PA-RISC/Itanium 64-bit Patch and HP-UX
Date
Msg-id 7471.1097209566@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] HP-UX PA-RISC/Itanium 64-bit Patch and HP-UX  (Shinji Teragaito <shinji@kobe.hp.com>)
Responses Re: [HACKERS] HP-UX PA-RISC/Itanium 64-bit Patch and HP-UX
List pgsql-patches
Shinji Teragaito <shinji@kobe.hp.com> writes:
152c152
<     SHLIB_LINK        += `$(CC) -print-libgcc-file-name`
---
>     SHLIB_LINK        += `$(CC) $(LDFLAGS) -print-libgcc-file-name`

Okay.  I'm slightly worried about odd LDFLAGS values confusing this, but
we can deal with that when we see an example.

155c155
<     LINK.shared        = $(CC) $(LDFLAGS) -shared -Wl,-h -Wl,$(soname)
---
>     LINK.shared        = $(CC) $(LDFLAGS) -shared -Wl,-h -Wl,$(soname) -Wl,+b -Wl,$(libdir)

That looks good too.  I think I had seen a truncated version of this
(just the +b part) and left it off because it didn't work.

I've applied both these changes.

58c58
< ifeq ($(with_gnu_ld), yes)
---
> ifeq ($(GCC), yes)

This I cannot apply; it breaks the gcc-with-HP-ld case, at least on my
personal installation (HPUX 10.20, gcc 2.95.3, HP ld).  My tests on HP's
testdrive systems did not show any problem here --- what case are you
concerned about exactly?

            regards, tom lane

pgsql-patches by date:

Previous
From: Shinji Teragaito
Date:
Subject: Re: [HACKERS] HP-UX PA-RISC/Itanium 64-bit Patch and HP-UX
Next
From: Neil Conway
Date:
Subject: Re: [psql] Setting the PROMPT on command line