From: Marc G. Fournier <scrappy@hub.org>
Date: Tue, 13 Jan 1998 04:38:30 +0000 (+0000)
Subject: A minor patch for HP/UX 10 vs 9
X-Git-Tag: REL6_3~362
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6380e70f07c6826aa57096b5fc2e1a47739c3bdc;p=postgresql

A minor patch for HP/UX 10 vs 9
---

diff --git a/src/makefiles/Makefile.hpux b/src/makefiles/Makefile.hpux
index 98c2ed76cc..bbe304539f 100644
--- a/src/makefiles/Makefile.hpux
+++ b/src/makefiles/Makefile.hpux
@@ -2,6 +2,12 @@ HPUX_MAJOR= $(shell uname -r|sed 's/^[^.]*\.\([^.]*\).*/\1/')
 # HP-UX 10 has a select() in libcurses, so we need to get the libc version first
 ifeq ($(HPUX_MAJOR), 10)
    LDFLAGS:= -Wl,-E -lc $(LDFLAGS)
+   CFLAGS+= -DUSE_POSIX_SIGNALS
+endif
+
+# HP-UX 09 needs libc before libPW, so we need to get the libc version first
+ifeq ($(HPUX_MAJOR), 09)
+   LDFLAGS:= -Wl,-E $(LDFLAGS:-lPW=-lc -lPW)
 endif
 
 # Does anyone use this stuff?
@@ -23,4 +29,3 @@ endif
 
 %.sl: %.o
 	$(LD) -b -o $@ $<
-