Use LDFLAGS from redhat-rpm-config

This commit is contained in:
Florian Weimer 2018-02-23 17:11:18 +01:00
parent 43d3932a29
commit a722de9a7f

View File

@ -1,7 +1,7 @@
Summary: An fdisk-like partitioning tool for GPT disks
Name: gdisk
Version: 1.0.3
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2
URL: http://www.rodsbooks.com/gdisk/
Group: System Environment/Base
@ -21,7 +21,7 @@ tables, and the ability to convert MBR disks to GPT format.
chmod 0644 gdisk_test.sh
%build
make CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64"
make CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" LDFLAGS="%{build_ldflags}"
%install
for f in gdisk sgdisk cgdisk fixparts ; do
@ -42,6 +42,9 @@ done
%{_mandir}/man8/fixparts.8*
%changelog
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 1.0.3-6
- Use LDFLAGS from redhat-rpm-config
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild