diff options
-rw-r--r-- | packaging/flatbuffers.spec | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packaging/flatbuffers.spec b/packaging/flatbuffers.spec index 49446768..650dc0f0 100644 --- a/packaging/flatbuffers.spec +++ b/packaging/flatbuffers.spec @@ -40,8 +40,10 @@ This package provides flatbuffers python API. cp %{SOURCE1} . %build -export CFLAGS+=" -fno-lto" -export CXXFLAGS+=" -fno-lto" +# To fix the buildbreak issue on gcc 11 or higher, '-Wno-error=stringop-overflow' option is added to CFLAGS and CXXFLAGS. +# Link: https://github.com/google/flatbuffers/pull/7422/commits/bd3aec02b4cf79c5f896c332c2ab5cb883fe6656 +export CFLAGS+=" -fno-lto -Wno-error=stringop-overflow" +export CXXFLAGS+=" -fno-lto -Wno-error=stringop-overflow" pushd python export VERSION="2.0.6" %{_bindir}/python3 setup.py build |