diff options
-rw-r--r-- | packaging/flatbuffers.spec | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packaging/flatbuffers.spec b/packaging/flatbuffers.spec index 36debb7d..4e1d495d 100644 --- a/packaging/flatbuffers.spec +++ b/packaging/flatbuffers.spec @@ -29,6 +29,9 @@ This package provides headers and other miscellaneous files required to use flat cp %{SOURCE1} . %build +export CFLAGS+=" -fno-lto" +export CXXFLAGS+=" -fno-lto" + # flatbuffers build occasionally fails when using -j${BUILD_THREADS} with an error similar to: # /mnt/source/flatbuffers/flatbuffers-1.6.0/samples/sample_binary.cpp:19:17: error: 'MyGame' has not been declared # /mnt/source/flatbuffers/flatbuffers-1.6.0/samples/sample_binary.cpp:19:25: error: 'Sample' is not a namespace-name |