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

51f3dd
diff -up redhat-rpm-config-9.1.0/macros.perf_build redhat-rpm-config-9.1.0/macros
51f3dd
--- redhat-rpm-config-9.1.0/macros.perf_build	2014-01-10 14:27:21.038112706 +0200
51f3dd
+++ redhat-rpm-config-9.1.0/macros	2014-01-10 14:27:25.410106657 +0200
51f3dd
@@ -178,7 +178,14 @@ package or when debugging this package.\
51f3dd
 %_hardened_cflags	%{?_hardened_build:%{_hardening_cflags}}
51f3dd
 %_hardened_ldflags	%{?_hardened_build:%{_hardening_ldflags}}
51f3dd
 
51f3dd
-%__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}
51f3dd
+#%_performance_build		0
51f3dd
+%_performance_cflags		%{?_performance_build:%{lua:\
51f3dd
+local tcpu = rpm.expand("%{_target_cpu}")
51f3dd
+if string.find(tcpu, "^ppc64") then\
51f3dd
+    print("-O3")\
51f3dd
+end}}
51f3dd
+
51f3dd
+%__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}
51f3dd
 %__global_ldflags	-Wl,-z,relro %{_hardened_ldflags}
51f3dd
 
51f3dd
 # Use these macros to differentiate between RH and other KMP implementation(s).