iproute2: honor LDFLAGS
authorSteven Barth <cyrus@openwrt.org>
Fri, 19 Jun 2015 13:30:18 +0000 (13:30 +0000)
committerSteven Barth <cyrus@openwrt.org>
Fri, 19 Jun 2015 13:30:18 +0000 (13:30 +0000)
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46064

package/network/utils/iproute2/Makefile

index 308ec57..7b55f69 100644 (file)
@@ -95,7 +95,7 @@ MAKE_FLAGS += \
        EXTRA_CCOPTS="$(TARGET_CFLAGS) -I../include -I$(STAGING_DIR)/usr/include/libnl-tiny" \
        KERNEL_INCLUDE="$(LINUX_DIR)/include" \
        SHARED_LIBS="" \
-       LDFLAGS="-Wl,--gc-sections" \
+       LDFLAGS="$(TARGET_LDFLAGS) -Wl,--gc-sections" \
        IP_CONFIG_TINY=$(IP_CONFIG_TINY) \
        FPIC="$(FPIC)"