From 2c863674dff798abef6395e17ad0ad26ffba426a Mon Sep 17 00:00:00 2001 From: "Richard M. Shaw" Date: Sun, 9 Oct 2016 09:31:39 -0500 Subject: [PATCH] Build with $RPM_OPT_FLAGS and $RPM_LD_FLAGS --- vtable-dumper.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vtable-dumper.spec b/vtable-dumper.spec index 4c71b40..32ca0e3 100644 --- a/vtable-dumper.spec +++ b/vtable-dumper.spec @@ -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ä - 1.2-2 +- Build with $RPM_OPT_FLAGS and $RPM_LD_FLAGS + * Thu Oct 6 2016 Richard Shaw - 1.2-1 - Update to latest upstream release.