aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-19 18:40:54 +0200
committerJouni Malinen <j@w1.fi>2009-12-19 18:40:54 +0200
commit930f704aacaf90b3f9119099aa1dc22f02818796 (patch)
tree1d0db2179ba9fbd4e7de16fa92f3990616171b4c /hostapd/Makefile
parentf5d4a8ead4103da3e499e4236964ac654529f1f2 (diff)
downloadexternal_wpa_supplicant_8_ti-930f704aacaf90b3f9119099aa1dc22f02818796.zip
external_wpa_supplicant_8_ti-930f704aacaf90b3f9119099aa1dc22f02818796.tar.gz
external_wpa_supplicant_8_ti-930f704aacaf90b3f9119099aa1dc22f02818796.tar.bz2
Add backtrace support for debugging
WPA_TRACE=y can now be used to enable internal backtrace support that will provide more details about implementation errors, e.g., when some resources are not released correctly. In addition, this will print out a backtrace automatically if SIGSEGV is received.
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 4155a34..21b4a66 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -48,6 +48,11 @@ OBJS += ../src/drivers/drivers.o
OBJS += ../src/drivers/scan_helpers.o
CFLAGS += -DHOSTAPD
+ifdef CONFIG_WPA_TRACE
+CFLAGS += -DWPA_TRACE
+OBJS += ../src/utils/trace.o
+endif
+
OBJS += ../src/utils/eloop.o
OBJS += ../src/utils/common.o
OBJS += ../src/utils/wpa_debug.o