From: Petr Oros Date: Tue, 18 Nov 2025 14:10:29 +0000 (+0100) Subject: lib: Move mnlg to lib for shared use X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d61015ba9910b128db2d7b455056093755e21f9;p=thirdparty%2Fiproute2.git lib: Move mnlg to lib for shared use Move mnlg.c to lib/ and mnlg.h to include/ to allow code reuse across multiple tools. Signed-off-by: Petr Oros Signed-off-by: David Ahern --- diff --git a/devlink/Makefile b/devlink/Makefile index 1a1eed7e..ec62f0c6 100644 --- a/devlink/Makefile +++ b/devlink/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 include ../config.mk -DEVLINKOBJ = devlink.o mnlg.o +DEVLINKOBJ = devlink.o TARGETS += devlink LDLIBS += -lm diff --git a/devlink/mnlg.h b/include/mnlg.h similarity index 100% rename from devlink/mnlg.h rename to include/mnlg.h diff --git a/lib/Makefile b/lib/Makefile index 0ba62942..340c37bc 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -20,7 +20,7 @@ endif NLOBJ=libgenl.o libnetlink.o ifeq ($(HAVE_MNL),y) -NLOBJ += mnl_utils.o +NLOBJ += mnl_utils.o mnlg.o endif all: libnetlink.a libutil.a diff --git a/devlink/mnlg.c b/lib/mnlg.c similarity index 100% rename from devlink/mnlg.c rename to lib/mnlg.c