From af7bb7dd75f9ab84cbed8332621ad4fbb9c36ce5ca607fa53701da7d0d7391a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 23 Feb 2015 14:48:36 +0000 Subject: [PATCH] Accepting request 287340 from home:rguenther:branches:multimedia:libs - Avoid running configure twice and using -fprofile-generate or -fprofile-use for compiling configure tests when profiling. OBS-URL: https://build.opensuse.org/request/show/287340 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libsamplerate?expand=0&rev=29 --- libsamplerate.changes | 6 ++++++ libsamplerate.spec | 12 +++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/libsamplerate.changes b/libsamplerate.changes index cac5c57..85d3464 100644 --- a/libsamplerate.changes +++ b/libsamplerate.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 23 14:17:04 UTC 2015 - rguenther@suse.com + +- Avoid running configure twice and using -fprofile-generate or + -fprofile-use for compiling configure tests when profiling. + ------------------------------------------------------------------- Tue Aug 26 12:14:15 UTC 2014 - fcrozat@suse.com diff --git a/libsamplerate.spec b/libsamplerate.spec index 1b8555f..9b32919 100644 --- a/libsamplerate.spec +++ b/libsamplerate.spec @@ -1,7 +1,7 @@ # # spec file for package libsamplerate # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -82,19 +82,17 @@ This package includes the example programs for libsamplerate. %ifnarch %arm aarch64 # ARM has no working profile support in gcc atm profiledir=`mktemp -d` -export CFLAGS="%optflags %cflags_profile_generate=$profiledir" %configure --disable-silent-rules --disable-static -make %{?_smp_mflags} +make %{?_smp_mflags} CFLAGS="%optflags %cflags_profile_generate=$profiledir" pushd tests make check popd make clean -export CFLAGS="%optflags %cflags_profile_feedback=$profiledir" +make %{?_smp_mflags} CFLAGS="%optflags %cflags_profile_feedback=$profiledir" %else -export CFLAGS="%optflags" -%endif %configure --disable-silent-rules --disable-static -make %{?_smp_mflags} +make %{?_smp_mflags} CFLAGS="%optflags" +%endif %check pushd tests