tbb/optflags.patch
Ismail Dönmez 686e0f88bd - Add cmake-remove-include-path.patch to remove setting include
path since we already install under /usr/include and this fixes
  idiot OpenCV trying to do -isystem $TBB_INCLUDE_DIR

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tbb?expand=0&rev=57
2019-06-07 10:46:28 +00:00

14 lines
507 B
Diff

Index: tbb-2019_U8/build/linux.gcc.inc
===================================================================
--- tbb-2019_U8.orig/build/linux.gcc.inc
+++ tbb-2019_U8/build/linux.gcc.inc
@@ -65,7 +65,7 @@ ifneq (,$(shell $(CONLY) -dumpfullversio
endif
ifeq ($(cfg), release)
- CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD
+ CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 $(OPTFLAGS) -DUSE_PTHREAD
endif
ifeq ($(cfg), debug)
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD