Use %set_build_flags instead of passing build flags individually
This commit is contained in:
parent
b31742dbf6
commit
6dca93de29
11
dwz.spec
11
dwz.spec
|
@ -1,7 +1,7 @@
|
|||
Summary: DWARF optimization and duplicate removal tool
|
||||
Name: dwz
|
||||
Version: 0.14
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+ and GPLv3+
|
||||
Source: %{name}-0.14.tar.xz
|
||||
BuildRequires: gcc, gcc-c++, gdb, elfutils-libelf-devel, dejagnu
|
||||
|
@ -20,12 +20,12 @@ and using DW_TAG_imported_unit to import it into each CU that needs it.
|
|||
%setup -q -n dwz
|
||||
|
||||
%build
|
||||
%make_build CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}' \
|
||||
prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}
|
||||
%set_build_flags
|
||||
%make_build
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
%make_install prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}
|
||||
%make_install
|
||||
|
||||
%check
|
||||
make check
|
||||
|
@ -36,6 +36,9 @@ make check
|
|||
%{_mandir}/man1/dwz.1*
|
||||
|
||||
%changelog
|
||||
* Wed Apr 14 2021 Timm Bäder <tbaeder@redhat.com> 0.14-2
|
||||
- Use set_build_flags macro
|
||||
|
||||
* Tue Mar 09 2021 Jakub Jelinek <jakub@redhat.com> 0.14-1
|
||||
- update to a new upstream release
|
||||
|
||||
|
|
Loading…
Reference in New Issue