From aa36e0c9b4d8da06c5dc03a461f9d3fe69a1e7fb Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 3 May 2016 00:33:56 +0200 Subject: add OpenBSD pledge(2) support using -DUSE_PLEDGE --- config.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'config.mk') diff --git a/config.mk b/config.mk index 3c1e5d2..7479a97 100644 --- a/config.mk +++ b/config.mk @@ -4,6 +4,9 @@ PREFIX = /usr/local MANPREFIX = ${PREFIX}/man +# compiler and linker +#CC = cc + GITINC = /usr/local/include GITLIB = /usr/local/lib @@ -23,6 +26,7 @@ LDFLAGS = -s ${LIBS} #CFLAGS = -static -O2 -std=c99 ${INCS} #LDFLAGS = -static -s ${LIBS} -CPPFLAGS= -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS} -# compiler and linker -#CC = cc +CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE ${INCS} + +# OpenBSD 5.9+: use pledge(2) +#CPPFLAGS += -DUSE_PLEDGE -- cgit v1.2.3