tgt: Pass down TARGET_CPPFLAGS and TARGET_LDFLAGS
authorFlorian Fainelli <redacted>
Wed, 19 Apr 2017 00:22:21 +0000 (17:22 -0700)
committerFlorian Fainelli <redacted>
Tue, 6 Jun 2017 00:18:51 +0000 (17:18 -0700)
Make sure we pass down TARGET_CPPFLAGS and TARGET_LDFLAGS to fix build
with external toolchains that don't automatically search for headers and
libraries in $(STAGING_DIR).

Signed-off-by: Florian Fainelli <redacted>
net/tgt/Makefile

index c876179d0e152db97cc25fc37cf4d0730bcb6028..82d11030ffe2bc9457faa2340e8a2d6acbdebf18 100644 (file)
@@ -41,9 +41,11 @@ Note that if you are interested in only iSCSI (probably you are), you need only
 endef
 
 define Build/Compile
-       CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS)" $(MAKE) -C $(PKG_BUILD_DIR) \
+       CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
+               $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                LD="$(TARGET_CC)" \
+               LDFLAGS="$(TARGET_LDFLAGS)" \
                install-programs
 endef
 
git clone https://git.99rst.org/PROJECT