From c6574d8fac1d0bbae06acf0f2cd88b42b582005d Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 12 Oct 2019 16:31:52 +0200 Subject: build: copy symlinks Required for debian. Signed-off-by: Jason A. Donenfeld --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5fbafe5f..39d3046c 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ all: amd64/wireguard.exe x86/wireguard.exe .deps/prepared: export GOROOT := $(OLD_GOROOT) .deps/prepared: $(wildcard golang-*.patch) rm -rf .deps && mkdir -p .deps - if ! rsync --exclude=pkg/obj/go-build/trim.txt -aq $$(go env GOROOT)/ .deps/goroot; then chmod -R +w .deps/goroot; exit 1; fi + if ! rsync --exclude=pkg/obj/go-build/trim.txt -aqL $$(go env GOROOT)/ .deps/goroot; then chmod -R +w .deps/goroot; exit 1; fi chmod -R +w .deps/goroot cat $^ | patch -f -N -r- -p1 -d .deps/goroot touch $@ -- cgit v1.2.3-59-g8ed1b