diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-02-03 16:52:29 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-02-03 18:17:27 +0100 |
commit | ef117a91d1aa3caf02f89d0a824fee80a8f88b88 (patch) | |
tree | 4c5ec496f53b0e54f3555160d4503af5f4a60bdc /src/fuzz/Makefile | |
parent | embeddable-wg-library: use newer string_list (diff) | |
download | wireguard-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/fuzz/Makefile')
-rw-r--r-- | src/fuzz/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fuzz/Makefile b/src/fuzz/Makefile index eaa0eca..0f6ef2c 100644 --- a/src/fuzz/Makefile +++ b/src/fuzz/Makefile @@ -20,13 +20,13 @@ stringlist: stringlist.c ../ipc.c ../curve25519.c ../encoding.c $(CC) $(CFLAGS) -o $@ $< cmd: cmd.c $(wildcard ../*.c) - $(CC) $(CFLAGS) -D'RUNSTATEDIR="/var/empty"' -D'main(a,b)=wg_main(a,b)' -o $@ $^ -lmnl + $(CC) $(CFLAGS) -D'RUNSTATEDIR="/var/empty"' -D'main(a,b)=wg_main(a,b)' -o $@ $^ -set: set.c ../set.c ../ipc.c ../encoding.c ../mnlg.c ../curve25519.c ../config.c - $(CC) $(CFLAGS) -o $@ $< -lmnl +set: set.c ../set.c ../ipc.c ../encoding.c ../curve25519.c ../config.c + $(CC) $(CFLAGS) -o $@ $< -setconf: setconf.c ../setconf.c ../ipc.c ../encoding.c ../mnlg.c ../curve25519.c ../config.c - $(CC) $(CFLAGS) -o $@ $< -lmnl +setconf: setconf.c ../setconf.c ../ipc.c ../encoding.c ../curve25519.c ../config.c + $(CC) $(CFLAGS) -o $@ $< clean: $(RM) $(FUZZERS) |