From 5948b0a632edca99c01f8626274ab380fa3a452b Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Sat, 13 Sep 2014 23:22:48 +0200 Subject: [PATCH] libs/libsodium: add LIBSODIUM_MINIMAL --- libs/libsodium/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libs/libsodium/Makefile b/libs/libsodium/Makefile index 84f7d414f..77230a621 100644 --- a/libs/libsodium/Makefile +++ b/libs/libsodium/Makefile @@ -43,7 +43,17 @@ define Package/libsodium/description And despite the emphasis on higher security, primitives are faster across-the-board than most implementations of the NIST standards. endef -CONFIGURE_ARGS += --disable-ssp +define Package/libsodium/config +menu "Configuration" + config LIBSODIUM_MINIMAL + bool "Create a smaller library" + default n +endmenu +endef + +CONFIGURE_ARGS+= \ + --disable-ssp \ + $(if $(CONFIG_LIBSODIUM_MINIMAL),--enable-minimal=yes,--enable-minimal=no) define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include/sodium