package/bind: enable static build
Static build has been disabled in 2014 with commit
6045904752 however bind can be built
statically thanks to --without-dlopen so enable it back
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
753bfec583
commit
05cbc9a184
@@ -28,7 +28,6 @@ BIND_CONF_OPTS = \
|
||||
--with-libjson=no \
|
||||
--with-randomdev=/dev/urandom \
|
||||
--enable-epoll \
|
||||
--with-libtool \
|
||||
--with-gssapi=no \
|
||||
--enable-filter-aaaa
|
||||
|
||||
@@ -54,12 +53,13 @@ BIND_CONF_OPTS += --with-libxml2=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
BIND_DEPENDENCIES += openssl
|
||||
BIND_DEPENDENCIES += host-pkgconf openssl
|
||||
BIND_CONF_OPTS += \
|
||||
--with-openssl=$(STAGING_DIR)/usr \
|
||||
--with-ecdsa=yes \
|
||||
--with-eddsa=no \
|
||||
--with-aes=yes
|
||||
BIND_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl`
|
||||
# GOST cipher support requires openssl extra engines
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL_ENGINES),y)
|
||||
BIND_CONF_OPTS += --with-gost=yes
|
||||
@@ -84,6 +84,16 @@ else
|
||||
BIND_CONF_OPTS += --with-readline=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
BIND_CONF_OPTS += \
|
||||
--without-dlopen \
|
||||
--without-libtool
|
||||
else
|
||||
BIND_CONF_OPTS += \
|
||||
--with-dlopen \
|
||||
--with-libtool
|
||||
endif
|
||||
|
||||
define BIND_TARGET_REMOVE_SERVER
|
||||
rm -rf $(addprefix $(TARGET_DIR)/usr/sbin/, $(BIND_TARGET_SERVER_SBIN))
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user