aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-09-25 23:28:15 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-09-25 23:28:15 +0000
commitdf2b3bcf44299d7060b3bc6c17c6e80a1f358692 (patch)
treecca69c2cc61378a4e15ca1b3a147d7009fe508ea /GNUmakefile
parent44b368e22098cc2d080a0e7695e46d7cef8db83d (diff)
downloadrtmux-df2b3bcf44299d7060b3bc6c17c6e80a1f358692.tar.gz
rtmux-df2b3bcf44299d7060b3bc6c17c6e80a1f358692.tar.bz2
rtmux-df2b3bcf44299d7060b3bc6c17c6e80a1f358692.zip
Fix stupid GNU getopt behaviour.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index b0e9dad3..d478fdbe 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,4 +1,4 @@
-# $Id: GNUmakefile,v 1.40 2008-09-25 20:08:51 nicm Exp $
+# $Id: GNUmakefile,v 1.41 2008-09-25 23:28:12 nicm Exp $
.PHONY: clean
@@ -91,6 +91,11 @@ SRCS+= compat/strlcpy.c compat/strlcat.c compat/strtonum.c compat/fgetln.c
CFLAGS+= $(shell getconf LFS_CFLAGS) -D_GNU_SOURCE \
-DNO_STRLCPY -DNO_STRLCAT -DNO_STRTONUM -DNO_SETPROCTITLE \
-DNO_QUEUE_H -DNO_TREE_H -DUSE_PTY_H -DNO_FGETLN -std=c99
+
+# GNU, as usual, decided on the insance default. So their stupid extensions
+# are default and POSIX-compliance is optional (!).
+CFLAGS+= -DGETOPT_PREFIX="\"+\""
+
LIBS+= -lrt -lutil
endif