From f0b9b2152e21153e87e5a8de532424a8cd50f5df Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 24 Sep 1997 04:20:29 +0000 Subject: [PATCH] HPUX 10 patch. --- src/makefiles/Makefile.hpux | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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 $@ $<