Blame SOURCES/redhat-rpm-config-9.1.0-perfbuild.patch

3bf4a1
diff -up redhat-rpm-config-9.1.0/macros.perf_build redhat-rpm-config-9.1.0/macros
3bf4a1
--- redhat-rpm-config-9.1.0/macros.perf_build	2014-01-10 14:27:21.038112706 +0200
3bf4a1
+++ redhat-rpm-config-9.1.0/macros	2014-01-10 14:27:25.410106657 +0200
3bf4a1
@@ -178,7 +178,14 @@ package or when debugging this package.\
3bf4a1
 %_hardened_cflags	%{?_hardened_build:%{_hardening_cflags}}
3bf4a1
 %_hardened_ldflags	%{?_hardened_build:%{_hardening_ldflags}}
3bf4a1
 
3bf4a1
-%__global_cflags	-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches %{_hardened_cflags}
3bf4a1
+#%_performance_build		0
3bf4a1
+%_performance_cflags		%{?_performance_build:%{lua:\
3bf4a1
+local tcpu = rpm.expand("%{_target_cpu}")
3bf4a1
+if string.find(tcpu, "^ppc64") then\
3bf4a1
+    print("-O3")\
3bf4a1
+end}}
3bf4a1
+
3bf4a1
+%__global_cflags	-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches %{_hardened_cflags} %{_performance_cflags}
3bf4a1
 %__global_ldflags	-Wl,-z,relro %{_hardened_ldflags}
3bf4a1
 
3bf4a1
 # Use these macros to differentiate between RH and other KMP implementation(s).