libs/libsodium: add LIBSODIUM_MINIMAL
authorMoritz Warning <redacted>
Sat, 13 Sep 2014 21:22:48 +0000 (23:22 +0200)
committerMoritz Warning <redacted>
Sat, 13 Sep 2014 21:22:48 +0000 (23:22 +0200)
libs/libsodium/Makefile

index 84f7d414fda9107bc12fd685653a8061889b1d24..77230a62156f88b6ec3908c38533ff2cd0706d03 100644 (file)
@@ -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
git clone https://git.99rst.org/PROJECT