]> git.armaanb.net Git - stagit.git/blobdiff - config.mk
stagit-index: pledge after git_libgit2_init
[stagit.git] / config.mk
index 3c1e5d2c44552a84b1aa02e237471d561d096c25..477f4fc00af5b2e95f9f9e3df7a48690b1468771 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -4,12 +4,15 @@
 PREFIX = /usr/local
 MANPREFIX = ${PREFIX}/man
 
+# compiler and linker
+#CC = cc
+
 GITINC = /usr/local/include
 GITLIB = /usr/local/lib
 
 # includes and libs
 INCS = -I${GITINC}
-LIBS = -L${GITLIB} -lgit2 -lc
+LIBS = -L${GITLIB} -lgit2
 
 # debug
 #CFLAGS = -fstack-protector-all -O0 -g -std=c99 -Wall -Wextra -pedantic ${INCS}
@@ -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 = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE -DUSE_PLEDGE ${INCS}