Bernd Kuhls 2015-05-31 13:06:29 +02:00 committed by Peter Korsgaard
parent 15ab99a7f1
commit 58af3f27df
1 changed files with 9 additions and 1 deletions

View File

@ -14,6 +14,13 @@ NMAP_CONF_OPTS = --without-liblua --without-zenmap \
NMAP_LICENSE = GPLv2
NMAP_LICENSE_FILES = COPYING
# needed by libpcap
NMAP_LIBS_FOR_STATIC_LINK += $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)
ifeq ($(BR2_STATIC_LIBS),y)
NMAP_CONF_ENV += LIBS='$(NMAP_LIBS_FOR_STATIC_LINK)'
endif
# for 0001-libdnet-wrapper-configure.patch
define NMAP_WRAPPER_EXEC
chmod +x $(@D)/libdnet-stripped/configure.gnu
@ -22,7 +29,8 @@ NMAP_POST_PATCH_HOOKS += NMAP_WRAPPER_EXEC
ifeq ($(BR2_PACKAGE_OPENSSL),y)
NMAP_CONF_OPTS += --with-openssl="$(STAGING_DIR)/usr"
NMAP_DEPENDENCIES += openssl
NMAP_DEPENDENCIES += host-pkgconf openssl
NMAP_LIBS_FOR_STATIC_LINK += $(shell $(PKG_CONFIG_HOST_BINARY) --libs --static openssl)
else
NMAP_CONF_OPTS += --without-openssl
endif