aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-12-10 20:25:42 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-12-10 20:25:42 +0000
commit5c3d973a4ae3b94db65a8198759ea911a6e097e8 (patch)
tree6d1d0b317a5c7fde6864f22cf58d83e1fb790ff0 /GNUmakefile
parent3b2859e9dcebc268241f76eec9a1b80b2dc3e129 (diff)
downloadrtmux-5c3d973a4ae3b94db65a8198759ea911a6e097e8.tar.gz
rtmux-5c3d973a4ae3b94db65a8198759ea911a6e097e8.tar.bz2
rtmux-5c3d973a4ae3b94db65a8198759ea911a6e097e8.zip
Import OpenBSD's getopt(3) to workaround broken glibc version.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/GNUmakefile b/GNUmakefile
index eaf27ff8..5753eb7b 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,4 +1,4 @@
-# $Id: GNUmakefile,v 1.43 2008-12-08 16:19:51 nicm Exp $
+# $Id: GNUmakefile,v 1.44 2008-12-10 20:25:41 nicm Exp $
.PHONY: clean
@@ -87,15 +87,12 @@ endif
ifeq ($(shell uname),Linux)
INCDIRS+= -Icompat
-SRCS+= compat/strlcpy.c compat/strlcat.c compat/strtonum.c compat/fgetln.c
+SRCS+= compat/strlcpy.c compat/strlcat.c compat/strtonum.c \
+ compat/fgetln.c compat/getopt_long.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="\"+\""
-
+ -DNO_QUEUE_H -DNO_TREE_H -DUSE_PTY_H -DNO_FGETLN \
+ -DBROKEN_GETOPT -std=c99
LIBS+= -lrt -lutil
endif