Skip to contentSkip to conversation

libpcap: omit -rpath from pcap-config

PATCH New Baruch Siach 2 participants 2 messages Oct 31, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/libpcap/libpcap.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/libpcap/libpcap.mk +6 -0
index 6126a86a64e6..bcc83edf714e 100644
@@ -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
Signature · 1 line
2.1.1
#1 lore raw

PATCH 1/1 libpcap: omit -rpath from pcap-config

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

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.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard