aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2014-10-31 08:59:28 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-10-31 16:19:59 +0100
commitbe995fbb403653336b5929adcd6e90b1ebbbe604 (patch)
tree37fe4ac0229404e1ceeffd098ab996d696b51b39
parentbe949527709843de01701df1d2726ba711821444 (diff)
downloadbuildroot-be995fbb403653336b5929adcd6e90b1ebbbe604.tar.gz
buildroot-be995fbb403653336b5929adcd6e90b1ebbbe604.tar.bz2
libpcap: omit -rpath from pcap-config
For target processes the libraries are always in their usual location under /lib and /usr/lib. It doesn't make sense to add RPATH tag pointing to host build directory to programs using libpcap. This commit changes V_RPATH_OPT in pcap-config to remove -rpath from its output. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/libpcap/libpcap.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/libpcap/libpcap.mk b/package/libpcap/libpcap.mk
index 6126a86a64..bcc83edf71 100644
--- a/package/libpcap/libpcap.mk
+++ b/package/libpcap/libpcap.mk
@@ -20,6 +20,12 @@ LIBPCAP_CFLAGS = $(TARGET_CFLAGS)
LIBPCAP_CONF_OPTS = --disable-yydebug --with-pcap=linux
LIBPCAP_CONFIG_SCRIPTS = pcap-config
+# Omit -rpath from pcap-config output
+define LIBPCAP_CONFIG_REMOVE_RPATH
+ $(SED) 's/^V_RPATH_OPT=.*/V_RPATH_OPT=""/g' $(@D)/pcap-config
+endef
+LIBPCAP_POST_BUILD_HOOKS = LIBPCAP_CONFIG_REMOVE_RPATH
+
# On purpose, not compatible with bluez5
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
LIBPCAP_DEPENDENCIES += bluez_utils