File tensorflow-2.6.0-fix-lite.patch of Package tensorflow2

--- a/tensorflow-2.6.0/tensorflow/lite/tools/make/Makefile
+++ b/tensorflow-2.6.0/tensorflow/lite/tools/make/Makefile
@@ -48,11 +48,12 @@ INCLUDES := \
 -I$(OBJDIR)
 # This is at the end so any globally-installed frameworks like protobuf don't
 # override local versions in the source tree.
-INCLUDES += -I/usr/local/include
+INCLUDES += -I/usr/include
 
 # These are the default libraries needed, but they can be added to or
 # overridden by the platform-specific settings in target makefiles.
 LIBS := \
+-lflatbuffers \
 -lstdc++ \
 -lpthread \
 -lm \
@@ -162,8 +163,7 @@ $(wildcard tensorflow/lite/tools/optimiz
 $(PROFILER_SRCS) \
 tensorflow/lite/tools/make/downloads/farmhash/src/farmhash.cc \
 tensorflow/lite/tools/make/downloads/fft2d/fftsg.c \
-tensorflow/lite/tools/make/downloads/fft2d/fftsg2d.c \
-tensorflow/lite/tools/make/downloads/flatbuffers/src/util.cpp
+tensorflow/lite/tools/make/downloads/fft2d/fftsg2d.c
 CORE_CC_ALL_SRCS += \
 	$(shell find tensorflow/lite/tools/make/downloads/absl/absl/ \
 	             -type f -name \*.cc | grep -v test | grep -v benchmark | grep -v synchronization | grep -v debugging | grep -v hash | grep -v flags | grep -v random)
openSUSE Build Service is sponsored by