aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-19 19:47:56 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-19 19:47:56 (GMT)
commitfb4baa688bdb15c7776b424cce38cfc70f5aa524 (patch)
tree8eec1b74013754ed4072df37c8e7ef9d47fcfaf2 /hostapd/Makefile
parent80d77c31ff3ddb54f2c32b5026c6e66041f8608e (diff)
downloadhostap-fb4baa688bdb15c7776b424cce38cfc70f5aa524.zip
hostap-fb4baa688bdb15c7776b424cce38cfc70f5aa524.tar.gz
hostap-fb4baa688bdb15c7776b424cce38cfc70f5aa524.tar.bz2
Add memory allocation analyzer to verify OS wrapper use
WPA_TRACE=y builds will now verify that memory allocation in done consistently using os_{zalloc,malloc,realloc,strdup,free} (i.e., no mixing of os_* functions and unwrapper functions). In addition, some common memory allocation issues (double-free, memory leaks, etc.) are detected automatically.
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 21b4a66..0d52c81 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -720,6 +720,10 @@ hostapd: $(BCHECK) $(OBJS)
$(CC) $(LDFLAGS) -o hostapd $(OBJS) $(LIBS)
OBJS_c = hostapd_cli.o ../src/common/wpa_ctrl.o ../src/utils/os_$(CONFIG_OS).o
+ifdef CONFIG_WPA_TRACE
+OBJS_c += ../src/utils/trace.o
+OBJS_c += ../src/utils/wpa_debug.o
+endif
hostapd_cli: $(OBJS_c)
$(CC) $(LDFLAGS) -o hostapd_cli $(OBJS_c)