aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/makefiles/Makefile.hpux13
1 files 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 $@ $<