tbb/optflags.patch
Marcus Meissner c7be8d3d1e Accepting request 20510 from home:msmeissn:branches:devel:libraries:c_c++
Copy from home:msmeissn:branches:devel:libraries:c_c++/tbb via accept of submit request 20510 revision 4.
Request was accepted with message:
added

OBS-URL: https://build.opensuse.org/request/show/20510
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tbb?expand=0&rev=1
2009-09-16 11:20:34 +00:00

20 lines
482 B
Diff

--- build/linux.gcc.inc
+++ build/linux.gcc.inc
@@ -37,6 +37,7 @@
RML_WARNING_SUPPRESS = -Wno-non-virtual-dtor
DYLIB_KEY = -shared
LIBDL = -ldl
+OPTFLAGS = -O2
TBB_NOSTRICT = 1
@@ -47,7 +48,7 @@
C_FLAGS = $(CPLUS_FLAGS)
ifeq ($(cfg), release)
- CPLUS_FLAGS = -DDO_ITT_NOTIFY -O2 -DUSE_PTHREAD
+ CPLUS_FLAGS = -DDO_ITT_NOTIFY $(OPTFLAGS) -DUSE_PTHREAD
endif
ifeq ($(cfg), debug)
CPLUS_FLAGS = -DTBB_USE_DEBUG -DDO_ITT_NOTIFY -g -O0 -DUSE_PTHREAD