crda: make the whole crypto stuff optional and don't use it for now, link statically...
[openwrt/staging/mkresin.git] / package / crda / patches / 101-make_crypto_use_optional.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -29,7 +29,9 @@ LDLIBS += `pkg-config --libs openssl`
4
5 reglib.o: keys-ssl.c
6
7 -else
8 +endif
9 +
10 +ifeq ($(USE_GCRYPT),1)
11 CFLAGS += -DUSE_GCRYPT
12 LDLIBS += -lgcrypt
13