tbb/optflags.patch
Cristian Rodríguez 0268ddae8b Accepting request 130974 from home:chenxiaolong:SABnzbd
Update to latest version and include internal headers as some packages need them to compile properly.

OBS-URL: https://build.opensuse.org/request/show/130974
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tbb?expand=0&rev=4
2012-08-16 05:49:42 +00:00

20 lines
557 B
Diff

--- 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