]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iproute2: tc: introduce build dependency on libnetlink
authorJiri Kosina <jkosina@suse.cz>
Fri, 24 Feb 2017 17:28:54 +0000 (18:28 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 24 Feb 2017 23:11:32 +0000 (15:11 -0800)
Rebuilding libnetlink doesn't trigger rebuild of tc, which is wrong
(especially so for builds where libnetlink.a gets statically linked into
tc). Fix that by introducing an explicit dependency.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
tc/Makefile

index 6dd984f071854383647f4e40e74a0bd19eeca5ad..3f7fc939e194c3f26db7d4e11c55e9c6f4026972 100644 (file)
@@ -127,7 +127,7 @@ MODDESTDIR := $(DESTDIR)$(LIBDIR)/tc
 
 all: tc $(TCSO)
 
-tc: $(TCOBJ) libtc.a
+tc: $(TCOBJ) $(LIBNETLINK) libtc.a
        $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
 
 libtc.a: $(TCLIB)