From 0548b67c940c304d186b5e1a9f0d530a8fc5e380 Mon Sep 17 00:00:00 2001 From: rsteube Date: Sun, 27 Oct 2024 21:39:45 +0100 Subject: [PATCH] fix patch --- .../patch.diff | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 termux/6-src-runtime-cgo-gcc_android.c.patch/patch.diff diff --git a/termux/6-src-runtime-cgo-gcc_android.c.patch/patch.diff b/termux/6-src-runtime-cgo-gcc_android.c.patch/patch.diff new file mode 100644 index 0000000..9b1a1b4 --- /dev/null +++ b/termux/6-src-runtime-cgo-gcc_android.c.patch/patch.diff @@ -0,0 +1,25 @@ +diff -u -r ../go/src/runtime/cgo/gcc_android.c ./src/runtime/cgo/gcc_android.c +--- ../go/src/runtime/cgo/gcc_android.c 2015-08-06 00:36:35.000000000 -0400 ++++ ./src/runtime/cgo/gcc_android.c 2015-08-16 16:08:05.346940583 -0400 +@@ -11,21 +11,11 @@ + { + va_list ap; + +- // Write to both stderr and logcat. +- // +- // When running from an .apk, /dev/stderr and /dev/stdout +- // redirect to /dev/null. And when running a test binary +- // via adb shell, it's easy to miss logcat. +- + fprintf(stderr, "runtime/cgo: "); + va_start(ap, format); + vfprintf(stderr, format, ap); + va_end(ap); + fprintf(stderr, "\n"); + +- va_start(ap, format); +- __android_log_vprint(ANDROID_LOG_FATAL, "runtime/cgo", format, ap); +- va_end(ap); +- + abort(); + }