tbb/optflags.patch

20 lines
545 B
Diff

--- build/linux.gcc.inc.orig
+++ build/linux.gcc.inc
@@ -39,6 +39,7 @@ WARNING_SUPPRESS = -Wno-parentheses -Wno
DYLIB_KEY = -shared
EXPORT_KEY = -Wl,--version-script,
LIBDL = -ldl
+OPTFLAGS = -O2
TBB_NOSTRICT = 1
@@ -51,7 +52,7 @@ C_FLAGS = $(CPLUS_FLAGS)
ITT_NOTIFY = -DDO_ITT_NOTIFY
ifeq ($(cfg), release)
- CPLUS_FLAGS = $(ITT_NOTIFY) -O2 -DUSE_PTHREAD
+ CPLUS_FLAGS = $(ITT_NOTIFY) -O2 $(OPTFLAGS) -DUSE_PTHREAD
endif
ifeq ($(cfg), debug)
CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD