[PATCH]: append -MMD to default CFLAGS

Kel Modderman kel at otaku42.de
Wed Jan 9 02:38:18 EST 2008


This patch allows the default CFLAGS to be overridden without possible
(if any?) adverse effects of removing the -MMD flag that creates the dependency
files for sourcing later in the build system.

The same could be done for hostapd, providing it is a sane suggestion.

Signed-off-by: Kel Modderman <kel at otaku42>
---
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -3,9 +3,10 @@
 endif
 
 ifndef CFLAGS
-CFLAGS = -MMD -O2 -Wall -g
+CFLAGS = -O2 -Wall -g
 endif
 
+CFLAGS += -MMD
 CFLAGS += -I.
 CFLAGS += -I../src
 CFLAGS += -I../src/crypto
---


More information about the HostAP mailing list