Add Linux glibc way of things. - pointtools - Simple point utilities to hold text presentations.
(HTM) git clone git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit e1ccb875a3dd3576e285e1cf49b6ebd6e344f1ae
(DIR) parent dfe08ef1dd536349b25c9c22f8b893f52e6d2001
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Wed, 29 Apr 2020 19:11:34 +0200
Add Linux glibc way of things.
Diffstat:
M config.mk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/config.mk b/config.mk
@@ -14,7 +14,11 @@ INCS = -I. -I/usr/include
LIBS = -L/usr/lib -lc -lbsd
# flags
-CPPFLAGS = -DVERSION=\"${VERSION}\"
+# Linux
+CPPFLAGS = -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=1
+# BSD
+#CPPFLAGS = -DVERSION=\"${VERSION}\"
+
CFLAGS += -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os ${INCS} ${CPPFLAGS}
LDFLAGS += -g ${LIBS}