summaryrefslogtreecommitdiff
path: root/package/utils
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-02-12 14:07:36 -0800
committerJo-Philipp Wich <jo@mein.io>2017-12-13 14:36:50 +0100
commitc6dd059a9a00db37c4d32eae1fe10635706bd8fc (patch)
tree527bf07acae1d05ac2bb787c5f5706efb070ecdc /package/utils
parent12b811a6093da9ca85a8049e85809b7ffbfdd9d2 (diff)
downloadmtk-20170518-c6dd059a9a00db37c4d32eae1fe10635706bd8fc.zip
mtk-20170518-c6dd059a9a00db37c4d32eae1fe10635706bd8fc.tar.gz
mtk-20170518-c6dd059a9a00db37c4d32eae1fe10635706bd8fc.tar.bz2
px5g: Fix TARGET_LDFLAGS and add TARGET_CPPFLAGS
Make sure we pass down TARGET_CPPFLAGS to let toolchains with no default search paths to find the mbdetls headers, and override TARGET_LDFLAGS to include libraries we are linking against. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> (cherry picked from commit 306ee6436170d4c3c0c677653e9a20a8ee116cf7)
Diffstat (limited to 'package/utils')
-rw-r--r--package/utils/px5g/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/utils/px5g/Makefile b/package/utils/px5g/Makefile
index 6fd73e3..8d1f04d 100644
--- a/package/utils/px5g/Makefile
+++ b/package/utils/px5g/Makefile
@@ -47,7 +47,7 @@ define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
-TARGET_LDFLAGS := -lmbedtls -lmbedx509 -lmbedcrypto
+TARGET_LDFLAGS += -lmbedtls -lmbedx509 -lmbedcrypto
ifeq ($(BUILD_VARIANT),standalone)
TARGET_LDFLAGS := -Wl,-Bstatic $(TARGET_LDFLAGS) -Wl,-Bdynamic
@@ -56,7 +56,7 @@ endif
TARGET_CFLAGS += -Wl,--gc-sections
define Build/Compile
- $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/px5g px5g.c $(TARGET_LDFLAGS)
+ $(TARGET_CC) $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/px5g px5g.c $(TARGET_LDFLAGS)
endef
define Package/px5g-mbedtls/install