- test if libgo builds on i486
%undefine with_multilib
%endif
-%ifarch i386 i486
+#ifarch i386 i486
# __i686.get_pc_thunk.bx undefined in libgo (TODO: recheck on gcc updates)
-%undefine with_go
-%endif
+#undefine with_go
+#endif
%ifarch sparc64
%undefine with_ada
Patch7: %{name}-libjava-multilib.patch
Patch8: %{name}-enable-java-awt-qt.patch
Patch10: %{name}-moresparcs.patch
+Patch11: libgo-werror.patch
Patch13: issue4664051.patch
URL: http://gcc.gnu.org/
BuildRequires: autoconf >= 2.64
%patch8 -p1
%endif
%patch10 -p1
+%patch11 -p1
%patch13 -p0
--- /dev/null
+--- gcc-4.7.1/libgo/runtime/print.c
++++ gcc-4.7.1/libgo/runtime/print.c
+@@ -17,7 +17,8 @@
+ G* g = runtime_g();
+
+ if(g == nil || g->writebuf == nil) {
+- runtime_write(2, v, n);
++ ssize_t bytesWritten = runtime_write(2, v, n);
++ (void)bytesWritten;
+ return;
+ }
+