diff --git a/src/sage/libs/linbox/fflas.pxd b/src/sage/libs/linbox/fflas.pxd index ecbd2579909..5cd53aaf5a8 100644 --- a/src/sage/libs/linbox/fflas.pxd +++ b/src/sage/libs/linbox/fflas.pxd @@ -1,4 +1,12 @@ -# distutils: extra_compile_args = FFLASFFPACK_CFLAGS +# Trac #33153: fflas-ffpack-2.4.3 is missing a return value in one of +# its functions and runs afoul of -Werror=return-type. Compounding the +# problem on openSUSE tumbleweed, the CFLAGS in python's sysconfig +# contain -Werror=return-type and wind up being used to compile this +# extension. To avoid a compilation failure on that platform, we +# temporarily append "-Wno-error=return-type" to those flags. +# +# distutils: extra_compile_args = FFLASFFPACK_CFLAGS -Wno-error=return-type +# # distutils: include_dirs = FFLASFFPACK_INCDIR # distutils: libraries = FFLASFFPACK_LIBRARIES # distutils: library_dirs = FFLASFFPACK_LIBDIR