]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
libpcap: omit -rpath from pcap-config
authorBaruch Siach <baruch@tkos.co.il>
Fri, 31 Oct 2014 06:59:28 +0000 (08:59 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 31 Oct 2014 15:19:59 +0000 (16:19 +0100)
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>
package/libpcap/libpcap.mk

index 6126a86a64e64f1b332ba8096f0cad2356b5e958..bcc83edf714e65e36e0c37f6fa68e3ad207e2ecd 100644 (file)
@@ -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