From f3021b35236e62aa05c3f8203c57b1b924ccfec6ed579c67410ee0871499524a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Fri, 30 Sep 2011 21:25:41 +0000 Subject: [PATCH] Accepting request 85834 from home:elvigia:branches:Base:System - Fix build in armv5el doesnt like profiling OBS-URL: https://build.opensuse.org/request/show/85834 OBS-URL: https://build.opensuse.org/package/show/Base:System/xz?expand=0&rev=40 --- xz.changes | 5 +++++ xz.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/xz.changes b/xz.changes index 5479482..60428b7 100644 --- a/xz.changes +++ b/xz.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 30 20:31:59 UTC 2011 - crrodriguez@opensuse.org + +- Fix build in armv5el doesnt like profiling + ------------------------------------------------------------------- Tue Sep 27 13:05:34 UTC 2011 - sweet_f_a@gmx.de diff --git a/xz.spec b/xz.spec index 8943770..05056b7 100644 --- a/xz.spec +++ b/xz.spec @@ -87,14 +87,14 @@ compiling programs using the LZMA library. %setup -q %build -%if %{do_profiling} +%ifnarch %{arm} && %{do_profiling} profiledir=$(mktemp -d) trap "rm -rf $profiledir" EXIT export CFLAGS="%optflags %{cflags_profile_generate}=$profiledir" %endif -%configure --libdir=/%{_lib} --disable-static --with-pic --docdir=%_docdir/%name +%configure --libdir=/%{_lib} --disable-static --with-pic --docdir=%_docdir/%name || cat config.log make %{?_smp_mflags} -%if %{do_profiling} +%ifnarch %{arm} && %{do_profiling} time make check make clean export CFLAGS="%optflags %{cflags_profile_feedback}=$profiledir"