aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-10 16:38:16 +0200
committerMattias Andrée <maandree@kth.se>2024-08-10 16:38:16 +0200
commit201b94b005c08143856937d72b76b7ef57553ab0 (patch)
tree3c8714999b0f3d10a611b907412868723a1cde52
parentEmpty signed commit (diff)
downloadlibgamma-201b94b005c08143856937d72b76b7ef57553ab0.tar.gz
libgamma-201b94b005c08143856937d72b76b7ef57553ab0.tar.bz2
libgamma-201b94b005c08143856937d72b76b7ef57553ab0.tar.xz
Use cc -std=c11 as default value of CC as CC is otherwise c99 by default and incompatible with -std=c11
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--config.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index c675775..4e57b52 100644
--- a/config.mk
+++ b/config.mk
@@ -1,6 +1,8 @@
PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
+CC = cc -std=c11
+
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
-CFLAGS = -std=c11 -O2
+CFLAGS = -O2
LDFLAGS = -s