aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-20 21:35:06 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-20 21:35:06 (GMT)
commitf2f7d965b86cb59c179c2102d5173916a70ae0a0 (patch)
treec8f6efc90c1f27ee45e19cba0429bcea7bb7b5db /hostapd/Makefile
parentb763863d97a640156e66d0ee0f6945a4235fa596 (diff)
downloadhostap-f2f7d965b86cb59c179c2102d5173916a70ae0a0.zip
hostap-f2f7d965b86cb59c179c2102d5173916a70ae0a0.tar.gz
hostap-f2f7d965b86cb59c179c2102d5173916a70ae0a0.tar.bz2
Add option libbfd support for tracing code
CONFIG_WPA_TRACE=y and CONFIG_WPA_TRACE_BFD=y can now be used to get even more complete symbols (func/file/line and inline functions) for backtraces.
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 0d52c81..ad4ad05 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -51,6 +51,13 @@ CFLAGS += -DHOSTAPD
ifdef CONFIG_WPA_TRACE
CFLAGS += -DWPA_TRACE
OBJS += ../src/utils/trace.o
+LDFLAGS += -rdynamic
+CFLAGS += -funwind-tables
+ifdef CONFIG_WPA_TRACE_BFD
+CFLAGS += -DWPA_TRACE_BFD
+LIBS += -lbfd
+LIBS_c += -lbfd
+endif
endif
OBJS += ../src/utils/eloop.o
@@ -725,7 +732,7 @@ 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)
+ $(CC) $(LDFLAGS) -o hostapd_cli $(OBJS_c) $(LIBS_c)
NOBJS = nt_password_hash.o ../src/crypto/ms_funcs.o $(SHA1OBJS) ../src/crypto/rc4.o ../src/crypto/md5.o
ifdef CONFIG_INTERNAL_MD5