]> granicus.if.org Git - postgresql/commitdiff
A minor patch for HP/UX 10 vs 9
authorMarc G. Fournier <scrappy@hub.org>
Tue, 13 Jan 1998 04:38:30 +0000 (04:38 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Tue, 13 Jan 1998 04:38:30 +0000 (04:38 +0000)
src/makefiles/Makefile.hpux

index 98c2ed76cc426e721f84506ee410a282034f81ac..bbe304539f5c13a5043894a1d965114432e0f923 100644 (file)
@@ -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 $@ $<
-