diff options
author | Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> | 2018-05-17 23:08:21 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-05-18 11:19:00 +0200 |
commit | f06def4221c25f4ee43d31c2b90a1371ba4d6d33 (patch) | |
tree | 37424b0dafea011d98b63f47f6163194f7e15fd9 /package/network/services/wireguard/patches | |
parent | d91953cb5351f1ab3e75ae9e2d9622f754d518ed (diff) | |
download | upstream-f06def4221c25f4ee43d31c2b90a1371ba4d6d33.tar.gz upstream-f06def4221c25f4ee43d31c2b90a1371ba4d6d33.tar.bz2 upstream-f06def4221c25f4ee43d31c2b90a1371ba4d6d33.zip |
wireguard: no longer need portability patch
Drop package/network/services/wireguard/patches/100-portability.patch
Instead pass 'PLATFORM=linux' to make since we are always building FOR
linux.
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 | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/package/network/services/wireguard/patches/100-portability.patch b/package/network/services/wireguard/patches/100-portability.patch deleted file mode 100644 index 33a7373cc7..0000000000 --- a/package/network/services/wireguard/patches/100-portability.patch +++ /dev/null @@ -1,19 +0,0 @@ -tools: fix portability issue - -Check if the compiler defines __linux__, instead of assuming that the -host OS is the same as the target OS. - -Signed-off-by: Felix Fietkau <nbd@nbd.name> ---- ---- a/src/tools/Makefile -+++ b/src/tools/Makefile -@@ -36,6 +36,9 @@ endif - endif - - PLATFORM ?= $(shell uname -s | tr '[:upper:]' '[:lower:]') -+ifeq ($(strip $(shell echo __linux__ | $(CC) -E - | grep -v '^\#')),1) -+PLATFORM := linux -+endif - - CFLAGS ?= -O3 - CFLAGS += -std=gnu11 -D_GNU_SOURCE |