tbb/optflags.patch

20 lines
557 B
Diff
Raw Normal View History

--- build/linux.gcc.inc.orig 2012-08-15 17:41:48.445365711 -0400
+++ build/linux.gcc.inc 2012-08-15 17:41:20.025343809 -0400
@@ -39,6 +39,7 @@
DYLIB_KEY = -shared
EXPORT_KEY = -Wl,--version-script,
LIBDL = -ldl
+OPTFLAGS = -O2
TBB_NOSTRICT = 1
@@ -60,7 +61,7 @@
ITT_NOTIFY = -DDO_ITT_NOTIFY
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