File optflags.patch of Package tbb

Index: tbb44_20160128oss/build/linux.gcc.inc
===================================================================
--- tbb44_20160128oss.orig/build/linux.gcc.inc
+++ tbb44_20160128oss/build/linux.gcc.inc
@@ -54,7 +54,7 @@ ifneq (,$(shell gcc -dumpversion | egrep
 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
openSUSE Build Service is sponsored by