]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: fix xtables incorrect usage of LDFLAGS
authorSyrone Wong <wong.syrone@gmail.com>
Wed, 12 Dec 2018 11:35:08 +0000 (19:35 +0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 13 Dec 2018 19:38:43 +0000 (11:38 -0800)
commit6ddb36c3a9686df1cca2f4d06518395f1eb9d5cc
treeaf4313ebaf37abd60cc464f04e426643102ef9b1
parent3a1f602adefb7a242ba6f2cf06a762fa6043d107
tc: fix xtables incorrect usage of LDFLAGS

The incorrect setting of LDFLAGS causes error below:

> em_ipt.o: In function `em_ipt_print_epot':
> em_ipt.c:(.text.em_ipt_print_epot+0x2e): undefined reference to
> `xtables_init_all'

em_ipt.c gets involved when TC_CONFIG_XT=y, which requires xtables,
while tc/Makefile doesn't pass flags correctly. It adds '-lxtables'
to LDFLAGS instead of LDLIBS.

Fixes: dd296215 ("tc: add em_ipt ematch for calling xtables matches from tc matching context")
Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
Acked-by: Eyal Birger <eyal.birger@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/Makefile