disable -Werror from upstream to rebuild with newer compiler warnings

This commit is contained in:
Chris Leech 2017-02-12 11:39:56 -08:00
parent 043be0babc
commit b09c517b52

View File

@ -7,7 +7,7 @@
Name: lldpad Name: lldpad
Version: 1.0.1 Version: 1.0.1
Release: 5.git%{checkout}%{?dist} Release: 6.git%{checkout}%{?dist}
Summary: Intel LLDP Agent Summary: Intel LLDP Agent
Group: System Environment/Daemons Group: System Environment/Daemons
License: GPLv2 License: GPLv2
@ -74,6 +74,7 @@ that use %{name}.
%build %build
./bootstrap.sh ./bootstrap.sh
CFLAGS=${CFLAGS:-%optflags -Wno-error}; export CFLAGS;
%configure --disable-static %configure --disable-static
# fix the hardened build flags # fix the hardened build flags
sed -i -e 's! \\\$compiler_flags !&\\\$CFLAGS \\\$LDFLAGS !' libtool sed -i -e 's! \\\$compiler_flags !&\\\$CFLAGS \\\$LDFLAGS !' libtool
@ -112,6 +113,9 @@ rm -f %{buildroot}%{_libdir}/liblldp_clif.la
%{_libdir}/liblldp_clif.so %{_libdir}/liblldp_clif.so
%changelog %changelog
* Sun Feb 12 2017 Chris Leech <cleech@redhat.com> - 1.0.1-6.git036e314
- disable -Werror from upstream to rebuild with newer compiler warnings
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5.git036e314 * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5.git036e314
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild