From: Bruce Momjian Date: Wed, 24 Sep 1997 04:20:29 +0000 (+0000) Subject: HPUX 10 patch. X-Git-Tag: REL6_2~103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0b9b2152e21153e87e5a8de532424a8cd50f5df;p=thirdparty%2Fpostgresql.git HPUX 10 patch. --- diff --git a/src/makefiles/Makefile.hpux b/src/makefiles/Makefile.hpux index c0538323376..632bb6e75e4 100644 --- a/src/makefiles/Makefile.hpux +++ b/src/makefiles/Makefile.hpux @@ -1,7 +1,10 @@ +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:= -lc $(LDFLAGS) +endif -#HPUX_VERS:= $(shell uname -r) -#HPUX_MAJOR= ${HPUX_VERS:R:E} -#HPUX_MINOR= ${HPUX_VERS:E} +# Does anyone use this stuff? #ifdef ENFORCE_ALIGNMENT # CFLAGS+= -DNOFIXADE #else @@ -17,10 +20,6 @@ # endif # endif #endif -# HP-UX 10 has a select() in libcurses, so we need to get the libc version first -#ifeq ($(HPUX_MAJOR), 10) -# LDFLAGS:= -lc $(LDFLAGS) -#endif %.sl: %.o $(LD) -b -o $@ $<