pcapsipdump: Pass down TARGET_CPPFLAGS and TARGET_LDFLAGS 141/head
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 19 Apr 2017 01:05:02 +0000 (18:05 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Wed, 19 Apr 2017 01:05:02 +0000 (18:05 -0700)
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 <f.fainelli@gmail.com>
net/pcapsipdump/Makefile

index ca26bda5724a07c575a7034e86c2e4ca56781cd1..77dd64b84da4036503038299c3894f42e81be9b6 100644 (file)
@@ -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