From: Jason A. Donenfeld Date: Mon, 5 Nov 2018 03:30:32 +0000 (+0100) Subject: wireguard-go-bridge: work around DWARF generation issue X-Git-Tag: 0.0.20181104-2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03cce06292fb7a519b1d588097c1f0dc9b76855e;p=thirdparty%2Fwireguard-apple.git wireguard-go-bridge: work around DWARF generation issue Golang bug 25148 upstream. Signed-off-by: Jason A. Donenfeld --- diff --git a/wireguard-go-bridge/Makefile b/wireguard-go-bridge/Makefile index d16c238..ce4ab43 100644 --- a/wireguard-go-bridge/Makefile +++ b/wireguard-go-bridge/Makefile @@ -28,7 +28,7 @@ version-header: $(DESTDIR)/wireguard-go-version.h GOBUILDARCH := $(GOARCH_$(shell uname -m)) GOBUILDOS := $(shell uname -s | tr '[:upper:]' '[:lower:]') -GOBUILDVERSION := 1.11.1 +GOBUILDVERSION := 1.11.2 GOBUILDTARBALL := https://dl.google.com/go/go$(GOBUILDVERSION).$(GOBUILDOS)-$(GOBUILDARCH).tar.gz GOBUILDVERSION_NEEDED := go version go$(GOBUILDVERSION) $(GOBUILDOS)/$(GOBUILDARCH) export GOROOT := $(BUILDDIR)/goroot @@ -68,7 +68,7 @@ $(BUILDDIR)/libwg-go-$(1).a: $(BUILDDIR)/.prepared CGO_CFLAGS="$(CGO_FLAGS_$(1))" \ CGO_LDFLAGS="$(CGO_FLAGS_$(1))" \ GOARCH="$(GOARCH_$(1))" \ - go build -tags ios -v -o "$(BUILDDIR)/libwg-go-$(1).a" -buildmode c-archive && go version > "$(BUILDDIR)/.gobuildversion"; \ + go build -tags ios -ldflags=-w -v -o "$(BUILDDIR)/libwg-go-$(1).a" -buildmode c-archive && go version > "$(BUILDDIR)/.gobuildversion"; \ ret=$$$$?; \ rm -f "$(BUILDDIR)/libwg-go-$(1).h"; \ exit $$$$ret