aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-08 14:43:29 +0000
committerOmar Polo <op@omarpolo.com>2023-06-08 14:43:29 +0000
commit68e38f49b234474bdd123120de004de96fae8715 (patch)
tree407b5b408460a651748f4f7c581ae8571be38403 /configure
parent34836095937077a427c4810d21833a2b21000a86 (diff)
use -MMD if the compiler supports it
it's better than the previous Makefile.depend approach since this automatically adapts to the included headers without requiring manual intervention to regen the list.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index c7a1609..adb662d 100755
--- a/configure
+++ b/configure
@@ -240,6 +240,10 @@ fi
# --------
# tests for config.h
+if runtest noop MMD -MMD; then
+ CFLAGS="${CFLAGS} -MMD"
+fi
+
runtest err ERR || true
runtest explicit_bzero EXPLICIT_BZERO || true
runtest freezero FREEZERO || true