diff options
author | Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | 2018-05-16 16:14:15 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-05-17 09:47:20 +0200 |
commit | 4ff23afdcc75a4b65440a08292b84824c96feac8 (patch) | |
tree | 3c46f6948125bd42c6d49a3a4d2b41af7848c20f /package/network/services/wireguard/patches | |
parent | e9cb1b720dc890f40598b3ccf1b42110eee5081a (diff) | |
download | upstream-4ff23afdcc75a4b65440a08292b84824c96feac8.tar.gz upstream-4ff23afdcc75a4b65440a08292b84824c96feac8.tar.bz2 upstream-4ff23afdcc75a4b65440a08292b84824c96feac8.zip |
wireguard: bump to 20180514
52be69b version: bump snapshot
4884b45 ncat-client-server: add wg-quick variant
a333551 wg-quick: add darwin implementation
f5bf84d compat: backport for OpenSUSE 15
fe1ae1b wg-quick: add wg symlink
ecc1c5f wg-quick: add android implementation
3e6bb79 tools: reorganize for multiplatform wg-quick
b289d12 allowedips: Fix graphviz output after endianness patch
Refresh cross compile compatibility patch
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Diffstat (limited to 'package/network/services/wireguard/patches')
-rw-r--r-- | package/network/services/wireguard/patches/100-portability.patch | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/package/network/services/wireguard/patches/100-portability.patch b/package/network/services/wireguard/patches/100-portability.patch index b26d51ebd8..33a7373cc7 100644 --- a/package/network/services/wireguard/patches/100-portability.patch +++ b/package/network/services/wireguard/patches/100-portability.patch @@ -7,12 +7,13 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name> --- --- a/src/tools/Makefile +++ b/src/tools/Makefile -@@ -43,7 +43,7 @@ CFLAGS += -DRUNSTATEDIR="\"$(RUNSTATEDIR - ifeq ($(DEBUG_TOOLS),y) - CFLAGS += -g +@@ -36,6 +36,9 @@ endif endif --ifeq ($(shell uname -s),Linux) + + PLATFORM ?= $(shell uname -s | tr '[:upper:]' '[:lower:]') +ifeq ($(strip $(shell echo __linux__ | $(CC) -E - | grep -v '^\#')),1) - 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) ++PLATFORM := linux ++endif + + CFLAGS ?= -O3 + CFLAGS += -std=gnu11 -D_GNU_SOURCE |