Skip to contentSkip to conversation

nmap: remove redundant --static flag to pkg-config

Buildroot Thomas Petazzoni 1 participant 1 message Jul 26, 2015

lore
Share & tools
lore
#0 lore raw

commit: http://git.buildroot.net/buildroot/commit/?id=c38869b41b7b6b0ace06884ff13c5d751023b861
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/next

The pkg-config tool is automatically passing --static when BR2_STATIC_LIBS is set (see package/pkgconf/pkgconf.mk), so no need to pass it explicitly from package .mk files.

Additionally, replace a missed occurrence of $(shell) with backticks.

---
 package/nmap/nmap.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/nmap/nmap.mk +1 -1
index d450f5e..1a0e977 100644
@@ -30,7 +30,7 @@ NMAP_POST_PATCH_HOOKS += NMAP_WRAPPER_EXEC
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 NMAP_CONF_OPTS += --with-openssl="$(STAGING_DIR)/usr"
 NMAP_DEPENDENCIES += host-pkgconf openssl
-NMAP_LIBS_FOR_STATIC_LINK += $(shell $(PKG_CONFIG_HOST_BINARY) --libs --static openssl)
+NMAP_LIBS_FOR_STATIC_LINK += `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
 else
 NMAP_CONF_OPTS += --without-openssl
 endif