From 171a83e27421076d87f91d62f8e2d33eb75ec0fb Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 1 Feb 2018 17:00:05 +0100 Subject: [PATCH] Build with linker flags from redhat-rpm-config --- hostname.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hostname.spec b/hostname.spec index cc2f580..dd4be84 100644 --- a/hostname.spec +++ b/hostname.spec @@ -1,7 +1,7 @@ Summary: Utility to set/show the host name or domain name Name: hostname Version: 3.20 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: System Environment/Base URL: http://packages.qa.debian.org/h/hostname.html @@ -21,7 +21,7 @@ cp %{SOURCE1} . %patch1 -p1 %build -make CFLAGS="%{optflags} $CFLAGS -D_GNU_SOURCE" +make CFLAGS="%{optflags} $CFLAGS -D_GNU_SOURCE" LDFLAGS="$RPM_LD_FLAGS" %install make BASEDIR=%{buildroot} BINDIR=%{_bindir} install @@ -34,6 +34,9 @@ make BASEDIR=%{buildroot} BINDIR=%{_bindir} install %{_mandir}/man1/* %changelog +* Thu Feb 1 2018 Florian Weimer - 3.20-2 +- Build with linker flags from redhat-rpm-config + * Thu Feb 1 2018 Pavel Zhukov - 3.20-1 - New version 3.20