From ef117a91d1aa3caf02f89d0a824fee80a8f88b88 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 3 Feb 2020 16:52:29 +0100 Subject: netlink: remove libmnl requirement It turns out that the binary actually gets smaller if we simply inline the very small parts of libmnl that we need. Since we wind up needing the mnlg bits anyway, there's little benefit in linking to libmnl. Signed-off-by: Jason A. Donenfeld --- src/Makefile | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 0e11d2b..ec5d3a6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -50,12 +50,6 @@ WIREGUARD_TOOLS_VERSION = $(patsubst v%,%,$(shell GIT_CEILING_DIRECTORIES="$(PWD ifneq ($(WIREGUARD_TOOLS_VERSION),) CFLAGS += -D'WIREGUARD_TOOLS_VERSION="$(WIREGUARD_TOOLS_VERSION)"' endif -ifeq ($(PLATFORM),linux) -LIBMNL_CFLAGS := $(shell $(PKG_CONFIG) --cflags libmnl 2>/dev/null) -LIBMNL_LDLIBS := $(shell $(PKG_CONFIG) --libs libmnl 2>/dev/null || echo -lmnl) -CFLAGS += $(LIBMNL_CFLAGS) -LDLIBS += $(LIBMNL_LDLIBS) -endif ifeq ($(PLATFORM),haiku) LDLIBS += -lnetwork -lbsd endif -- cgit v1.2.3-59-g8ed1b