Commit dc587bf9 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

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: default avatarPeter Korsgaard <peter@korsgaard.com>
parent a9aa2ba0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)