When -flto option is used, static library doesn't contain
symbol names in it.
It may leads "undefined symbol" problem in some applications.
Change-Id: I3ab5f644b72e504d9390311e4ce945d9ac28527e
Signed-off-by: Semun Lee <semun.lee@samsung.com>
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