summaryrefslogtreecommitdiff
path: root/package/iproute2
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2015-05-21 17:32:24 +0200
committerPeter Korsgaard <peter@korsgaard.com>2015-05-21 23:22:52 +0200
commitdc587bf92c238e7d497bc1d4d9658923ada5c7be (patch)
treebcd8c5ef26e642324a5166e8429ef5ce666ced11 /package/iproute2
parenta9aa2ba02f5457ff4cbb10d0812568e0f8174492 (diff)
iproute2: ensure TARGET_LDFLAGS are used
Otherwise we can end up with various linker issues (E.G. linking shared against libc for a static build, ..). Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/iproute2')
-rw-r--r--package/iproute2/iproute2.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/iproute2/iproute2.mk b/package/iproute2/iproute2.mk
index ab374e1b5..49b1fdc61 100644
--- a/package/iproute2/iproute2.mk
+++ b/package/iproute2/iproute2.mk
@@ -58,7 +58,7 @@ endef
define IPROUTE2_BUILD_CMDS
$(SED) 's/$$(CCOPTS)//' $(@D)/netem/Makefile
- $(TARGET_MAKE_ENV) $(MAKE) \
+ $(TARGET_MAKE_ENV) LDFLAGS="$(TARGET_LDFLAGS)" $(MAKE) \
DBM_INCLUDE="$(STAGING_DIR)/usr/include" \
CCOPTS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \
SHARED_LIBS="$(if $(BR2_STATIC_LIBS),n,y)" -C $(@D)