From 7f8a7435d5d6ad77a93004cb62942038c7491a73 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 18 Apr 2017 18:05:02 -0700 Subject: [PATCH] pcapsipdump: Pass down TARGET_CPPFLAGS and TARGET_LDFLAGS Make sure that we properly pass down both TARGET_CPPFLAGS and TARGET_LDFLAGS in order to fix build failures with external toolchains that don't automatically search for headers and libraries in $(STAGING_DIR). Signed-off-by: Florian Fainelli --- net/pcapsipdump/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/pcapsipdump/Makefile b/net/pcapsipdump/Makefile index ca26bda..77dd64b 100644 --- a/net/pcapsipdump/Makefile +++ b/net/pcapsipdump/Makefile @@ -41,7 +41,8 @@ TARGET_CC=$(TARGET_CXX) define Build/Compile $(TARGET_CONFIGURE_OPTS) \ $(MAKE) -C $(PKG_BUILD_DIR) \ - CPPFLAGS="$(TARGET_CXXFLAGS) -fno-rtti" \ + CPPFLAGS="$(TARGET_CXXFLAGS) $(TARGET_CPPFLAGS) -fno-rtti" \ + LDFLAGS="$(TARGET_LDFLAGS)" \ LIBS="-lpcap" endef