]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
iproute2: ensure TARGET_LDFLAGS are used
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 21 May 2015 15:32:24 +0000 (17:32 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 21 May 2015 21:22:52 +0000 (23:22 +0200)
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>
package/iproute2/iproute2.mk

index ab374e1b55389811067e634761dd29efe88b70c7..49b1fdc6172275938fde49bdfc7b8688f4abb902 100644 (file)
@@ -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)