You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
diff -up redhat-rpm-config-9.1.0/macros.perf_build redhat-rpm-config-9.1.0/macros
|
|
|
|
--- redhat-rpm-config-9.1.0/macros.perf_build 2014-01-10 14:27:21.038112706 +0200
|
|
|
|
+++ redhat-rpm-config-9.1.0/macros 2014-01-10 14:27:25.410106657 +0200
|
|
|
|
@@ -178,7 +178,14 @@ package or when debugging this package.\
|
|
|
|
%_hardened_cflags %{?_hardened_build:%{_hardening_cflags}}
|
|
|
|
%_hardened_ldflags %{?_hardened_build:%{_hardening_ldflags}}
|
|
|
|
|
|
|
|
-%__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_build 0
|
|
|
|
+%_performance_cflags %{?_performance_build:%{lua:\
|
|
|
|
+local tcpu = rpm.expand("%{_target_cpu}")
|
|
|
|
+if string.find(tcpu, "^ppc64") then\
|
|
|
|
+ print("-O3")\
|
|
|
|
+end}}
|
|
|
|
+
|
|
|
|
+%__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}
|
|
|
|
%__global_ldflags -Wl,-z,relro %{_hardened_ldflags}
|
|
|
|
|
|
|
|
# Use these macros to differentiate between RH and other KMP implementation(s).
|