Use LDFLAGS from redhat-rpm-config

This commit is contained in:
Florian Weimer 2018-02-25 12:22:39 +01:00
parent 5a9a57105f
commit f2e9521168

View File

@ -3,7 +3,7 @@
Summary: A utility for configuring serial ports
Name: setserial
Version: 2.17
Release: 42%{?dist}
Release: 43%{?dist}
Source: http://sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: setserial-2.17-fhs.patch
Patch1: setserial-2.17-rc.patch
@ -45,6 +45,9 @@ rm -f config.cache
%patch5 -p1 -b .aarch64
%build
%set_build_flags
# Makefile expects CFLAGS to contain linker flags.
CFLAGS="$CFLAGS $LDFLAGS"
%configure
make %{?_smp_mflags}
@ -61,6 +64,9 @@ make install DESTDIR=${RPM_BUILD_ROOT}
%{_mandir}/man*/*
%changelog
* Sun Feb 25 2018 Florian Weimer <fweimer@redhat.com> - 2.17-43
- Use LDFLAGS from redhat-rpm-config
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild