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

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