aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-02-03 16:52:29 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-02-03 18:17:27 +0100
commitef117a91d1aa3caf02f89d0a824fee80a8f88b88 (patch)
tree4c5ec496f53b0e54f3555160d4503af5f4a60bdc /src/Makefile
parentembeddable-wg-library: use newer string_list (diff)
downloadwireguard-tools-ef117a91d1aa3caf02f89d0a824fee80a8f88b88.tar.xz
wireguard-tools-ef117a91d1aa3caf02f89d0a824fee80a8f88b88.zip
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 <Jason@zx2c4.com>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 0 insertions, 6 deletions
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