SHA256
1
0
forked from pool/m4

Accepting request 991865 from home:coolo:branches:Base:System

- Use %make_build macro and make sure we run the profiling run with -j1

OBS-URL: https://build.opensuse.org/request/show/991865
OBS-URL: https://build.opensuse.org/package/show/Base:System/m4?expand=0&rev=45
This commit is contained in:
Marcus Meissner 2022-08-29 08:25:00 +00:00 committed by Git OBS Bridge
parent 7a657f6c9c
commit f138d31d05
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jul 31 08:10:20 UTC 2022 - Stephan Kulow <coolo@suse.com>
- Use %make_build macro and make sure we run the profiling run with -j1
-------------------------------------------------------------------
Mon Jul 19 12:48:42 UTC 2021 - Andreas Schwab <schwab@suse.de>

15
m4.spec
View File

@ -1,7 +1,7 @@
#
# spec file for package m4
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -51,16 +51,17 @@ GNU m4 is an implementation of the traditional Unix macro processor.
gl_cv_func_printf_directive_n=yes \
gl_cv_func_printf_infinite_long_double=yes
%if %{do_profiling}
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" V=1
make check %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}"
make %{?_smp_mflags} clean
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}" V=1
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
# run profiling check sequentially to have it reproducible
%make_build -j1 check CFLAGS="%{optflags} %{cflags_profile_generate}"
%make_build clean
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
%else
make %{?_smp_mflags} V=1
%make_build
%endif
%check
make %{?_smp_mflags} check
%make_build check
%install
%make_install