summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjvoisin2022-03-28 22:04:17 +0200
committerjvoisin2022-03-28 22:04:17 +0200
commit192a24a035d5ef887e4163925156502552b78c7d (patch)
tree0981b17c4e5528ecd7977cc60390fbe56c82a24a /src
parent8228d790c0a6e02435a31a95aa542deae59d5275 (diff)
Use `AC_PROG_CC` to make compilers behave correctly
Diffstat (limited to 'src')
-rw-r--r--src/config.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.m4 b/src/config.m4
index 78ca6a2..9d41a86 100644
--- a/src/config.m4
+++ b/src/config.m4
@@ -21,6 +21,8 @@ PHP_ARG_ENABLE(debug, whether to enable debug messages,
21PHP_ARG_ENABLE(debug-stderr, whether to enable debug messages, 21PHP_ARG_ENABLE(debug-stderr, whether to enable debug messages,
22[ --enable-debug-stderr Enable debug messages], no, no) 22[ --enable-debug-stderr Enable debug messages], no, no)
23 23
24AC_PROG_CC()
25
24CFLAGS="$CFLAGS" 26CFLAGS="$CFLAGS"
25CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter" 27CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter"
26CFLAGS="$CFLAGS -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2" 28CFLAGS="$CFLAGS -Wformat=2 -Wformat-security -D_FORTIFY_SOURCE=2"