[pkg-wpa-devel] [PATCH]: allow build without any crypto
    Kel Modderman 
    kel at otaku42.de
       
    Wed Mar  3 04:04:02 UTC 2010
    
    
  
Allow crda to be built with USE_GCRYPT=0 to disable the default of
generating/including keys-gcrypt.c and linking to gcrypt.
Signed-off-by: Kel Modderman <kel at otaku42.de>
---
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,7 @@ CFLAGS += -DUSE_OPENSSL -DPUBKEY_DIR=\"$
 LDLIBS += `pkg-config --libs openssl`
 
 else
+ifneq ($(USE_GCRYPT),0)
 PUBKEY_DIR?=pubkeys
 CFLAGS += -DUSE_GCRYPT
 LDLIBS += -lgcrypt
@@ -40,6 +41,7 @@ keys-gcrypt: utils/key2pub.py $(wildcard
 	$(Q)./utils/key2pub.py $(wildcard $(PUBKEY_DIR)/*.pem) $@
 
 endif
+endif
 MKDIR ?= mkdir -p
 INSTALL ?= install
 
---
    
    
More information about the Pkg-wpa-devel
mailing list