Build with $RPM_OPT_FLAGS and $RPM_LD_FLAGS

epel9
Richard M. Shaw 8 years ago
parent 0b62953b42
commit 2c863674df

@ -1,6 +1,6 @@
Name: vtable-dumper
Version: 1.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Tool to list content of virtual tables in a C++ shared library
License: GPL+ or LGPLv2+
@ -20,12 +20,9 @@ compatibility.
%prep
%setup -q
# Simple makefile doesn't respect environment variables so cheat it.
sed -i 's|\-Wall|%{optflags} -fPIC -pie -Wl,-z,relro -Wl,-z,now|' Makefile
%build
make
%make_build CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
%install
@ -40,6 +37,9 @@ install -pm 0755 %{name} %{buildroot}%{_bindir}/
%changelog
* Sun Oct 9 2016 Ville Skyttä <ville.skytta@iki.fi> - 1.2-2
- Build with $RPM_OPT_FLAGS and $RPM_LD_FLAGS
* Thu Oct 6 2016 Richard Shaw <hobbes1069@gmail.com> - 1.2-1
- Update to latest upstream release.

Loading…
Cancel
Save