golang: compatibility with clang 11
Issue https://github.com/termux/termux-packages/issues/6183
This commit is contained in:
parent
4994a2a322
commit
20f7ae73af
@ -5,7 +5,7 @@ TERMUX_PKG_MAINTAINER="@termux"
|
||||
_MAJOR_VERSION=1.15.6
|
||||
# Use the ~ deb versioning construct in the future:
|
||||
TERMUX_PKG_VERSION=2:${_MAJOR_VERSION}
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_SRCURL=https://storage.googleapis.com/golang/go${_MAJOR_VERSION}.src.tar.gz
|
||||
TERMUX_PKG_SHA256=890bba73c5e2b19ffb1180e385ea225059eb008eb91b694875dd86ea48675817
|
||||
TERMUX_PKG_DEPENDS="clang"
|
||||
|
12
packages/golang/clang11-fix.patch
Normal file
12
packages/golang/clang11-fix.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -uNr go/src/runtime/cgo/gcc_linux_arm64.c go.mod/src/runtime/cgo/gcc_linux_arm64.c
|
||||
--- go/src/runtime/cgo/gcc_linux_arm64.c 2020-12-03 19:32:44.000000000 +0200
|
||||
+++ go.mod/src/runtime/cgo/gcc_linux_arm64.c 2020-12-29 00:12:33.341670237 +0200
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
static void *threadentry(void*);
|
||||
|
||||
-void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
|
||||
+extern void (*x_cgo_inittls)(void **tlsg, void **tlsbase);
|
||||
static void (*setg_gcc)(void*);
|
||||
|
||||
void
|
Loading…
Reference in New Issue
Block a user