Build with linker flags from redhat-rpm-config
This commit is contained in:
parent
431392b70f
commit
171a83e274
@ -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 <fweimer@redhat.com> - 3.20-2
|
||||
- Build with linker flags from redhat-rpm-config
|
||||
|
||||
* Thu Feb 1 2018 Pavel Zhukov <pzhukov@redhat.com> - 3.20-1
|
||||
- New version 3.20
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user