summaryrefslogtreecommitdiffstats
path: root/debian/patches/libgo-setcontext-config.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/libgo-setcontext-config.diff')
-rw-r--r--debian/patches/libgo-setcontext-config.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/libgo-setcontext-config.diff b/debian/patches/libgo-setcontext-config.diff
new file mode 100644
index 0000000..e6a3595
--- /dev/null
+++ b/debian/patches/libgo-setcontext-config.diff
@@ -0,0 +1,19 @@
+# DP: libgo: Overwrite the setcontext_clobbers_tls check on mips*
+
+--- a/src/libgo/configure.ac
++++ b/src/libgo/configure.ac
+@@ -793,6 +793,14 @@ main ()
+ CFLAGS="$CFLAGS_hold"
+ LIBS="$LIBS_hold"
+ ])
++dnl overwrite for the mips* 64bit multilibs, fails on some buildds
++if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
++ case "$target" in
++ mips*-linux-*)
++ AC_MSG_WARN([FIXME: overwrite setcontext_clobbers_tls for $target:$ptr_type_size])
++ libgo_cv_lib_setcontext_clobbers_tls=no ;;
++ esac
++fi
+ if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
+ AC_DEFINE(SETCONTEXT_CLOBBERS_TLS, 1,
+ [Define if setcontext clobbers TLS variables])