Message ID | 20201203041101.11116-1-dsahern@kernel.org (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | David Ahern |
Headers | show |
Series | [iproute2-next] Only compile mnl_utils when HAVE_LIBMNL is defined | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
David Ahern <dsahern@kernel.org> writes: > diff --git a/lib/Makefile b/lib/Makefile > index e37585c6..603ea83e 100644 > --- a/lib/Makefile > +++ b/lib/Makefile > @@ -13,7 +13,10 @@ UTILOBJ += bpf_libbpf.o > endif > endif > > -NLOBJ=libgenl.o libnetlink.o mnl_utils.o > +NLOBJ=libgenl.o libnetlink.o > +ifeq ($(HAVE_LIBMNL),y) This should test HAVE_MNL, not HAVE_LIBMNL.
On 12/3/20 2:45 PM, Petr Machata wrote: > > David Ahern <dsahern@kernel.org> writes: > >> diff --git a/lib/Makefile b/lib/Makefile >> index e37585c6..603ea83e 100644 >> --- a/lib/Makefile >> +++ b/lib/Makefile >> @@ -13,7 +13,10 @@ UTILOBJ += bpf_libbpf.o >> endif >> endif >> >> -NLOBJ=libgenl.o libnetlink.o mnl_utils.o >> +NLOBJ=libgenl.o libnetlink.o >> +ifeq ($(HAVE_LIBMNL),y) > > This should test HAVE_MNL, not HAVE_LIBMNL. > d'oh. thanks for catching that.
diff --git a/lib/Makefile b/lib/Makefile index e37585c6..603ea83e 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -13,7 +13,10 @@ UTILOBJ += bpf_libbpf.o endif endif -NLOBJ=libgenl.o libnetlink.o mnl_utils.o +NLOBJ=libgenl.o libnetlink.o +ifeq ($(HAVE_LIBMNL),y) +NLOBJ += mnl_utils.o +endif all: libnetlink.a libutil.a