commit 284e5aa56e775803d24879954136401a106aa063
parent 4927e765185046868ebfe1fd1ca8da6d635f4a97
Author: Claudio Alessi <smoppy@gmail.com>
Date: Sat, 11 Dec 2021 13:19:23 +0100
Fix POSIX_C_SOURCE macro for snprintf() and clock_gettime()
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/config.mk b/config.mk
@@ -12,10 +12,10 @@ INCS =
LIBS =
# flags
-CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\"
+CPPFLAGS = -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\"
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
-LDFLAGS = -s ${LIBS}
+LDFLAGS = ${LIBS}
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"