aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 15:09:39 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 15:09:39 +0100
commitdd8c66cc99e31e71ae1cc9fc706f60fbb33c6d65 (patch)
treed88557fdeaa756f0517bb8e0b239efc8efe3aa99
parentUpdate e-mail address (diff)
downloadlibzahl-dd8c66cc99e31e71ae1cc9fc706f60fbb33c6d65.tar.gz
libzahl-dd8c66cc99e31e71ae1cc9fc706f60fbb33c6d65.tar.bz2
libzahl-dd8c66cc99e31e71ae1cc9fc706f60fbb33c6d65.tar.xz
makefile: add ".POSIX:" line and use `c99` rather than `cc -std=c99`
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--Makefile2
-rw-r--r--config.mk4
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b885258..ad92a44 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+.POSIX:
+
CONFIG = config.mk
include $(CONFIG)
diff --git a/config.mk b/config.mk
index 2a42d3c..edb71a5 100644
--- a/config.mk
+++ b/config.mk
@@ -7,9 +7,9 @@ EXECPREFIX = $(PREFIX)
MANPREFIX = $(PREFIX)/share/man
DOCPREFIX = $(PREFIX)/share/doc
-CC = cc
+CC = c99
AR = ar
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DGOOD_RAND
-CFLAGS = -std=c99 -O3 -flto -Wall -pedantic
+CFLAGS = -O3 -flto -Wall -pedantic
LDFLAGS = -s