Skip to contentSkip to conversation

libpcap: update static handling

PATCH New Mike Frysinger 1 participant 1 message Nov 27, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libpcap: update static handling

The new version of libpcap changed how its install targets work. The main "install" target now always depends on "install-shared", so we need to force the DYEXT variable to "none" in order to bypass shared.

---
 package/libpcap/libpcap.mk |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
package/libpcap/libpcap.mk +2 -5
index eebfc03..377a60d 100644
@@ -8,14 +8,11 @@ LIBPCAP_VERSION:=1.1.1
 LIBPCAP_SITE:=http://www.tcpdump.org/release
 LIBPCAP_SOURCE:=libpcap-$(LIBPCAP_VERSION).tar.gz
 LIBPCAP_INSTALL_STAGING:=YES
-# doesn't have an install-strip
-LIBPCAP_INSTALL_TARGET_OPT= DESTDIR="$(TARGET_DIR)" \
-	$(if $(BR2_PREFER_STATIC_LIB),install,install-shared)
-LIBPCAP_INSTALL_STAGING_OPT= DESTDIR="$(STAGING_DIR)" install \
-	$(if $(BR2_PREFER_STATIC_LIB),,install-shared)
 LIBPCAP_DEPENDENCIES:=zlib
 LIBPCAP_CONF_ENV:=ac_cv_linux_vers=$(firstword $(subst .,$(space),$(firstword $(call qstrip,$(BR2_DEFAULT_KERNEL_HEADERS))))) \
 		  ac_cv_header_linux_wireless_h=yes # configure misdetects this
 LIBPCAP_CONF_OPT:=--disable-yydebug --with-pcap=linux
 
 $(eval $(call AUTOTARGETS,package,libpcap))
+
+LIBPCAP_MAKE += $(if $(BR2_PREFER_STATIC_LIB),DYEXT=none)
Signature · 1 line
1.7.3.2