aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-16 08:38:53 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-16 08:38:53 (GMT)
commit73b217570c2dabcf409a19e746c6a929f88a5781 (patch)
tree8d998d752c8cf3310591d342ef7daaba7be00d60 /hostapd/Makefile
parenta2e4f66edcd254395a614c149988bec3b01fa51d (diff)
downloadhostap-73b217570c2dabcf409a19e746c6a929f88a5781.zip
hostap-73b217570c2dabcf409a19e746c6a929f88a5781.tar.gz
hostap-73b217570c2dabcf409a19e746c6a929f88a5781.tar.bz2
Fix linking of nt_password_hash
Need to use conditional linking of some crypto functionality and add couple of additional object files. [Bug 343]
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index d94ceb9..6594df0 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -749,11 +749,22 @@ endif
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
+NOBJS = nt_password_hash.o ../src/crypto/ms_funcs.o $(SHA1OBJS) ../src/crypto/md5.o
+ifdef NEED_RC4
+ifdef CONFIG_INTERNAL_RC4
+NOBJS += ../src/crypto/rc4.o
+endif
+endif
ifdef CONFIG_INTERNAL_MD5
NOBJS += ../src/crypto/md5-internal.o
endif
NOBJS += ../src/crypto/crypto_openssl.o ../src/utils/os_$(CONFIG_OS).o
+NOBJS += ../src/utils/wpa_debug.o
+NOBJS += ../src/utils/wpabuf.o
+ifdef CONFIG_WPA_TRACE
+NOBJS += ../src/utils/trace.o
+LIBS_n += -lbfd
+endif
ifdef TLS_FUNCS
LIBS_n += -lcrypto
endif