Build with -fcommon

Wordaround to build with gcc10. proper fix will be added once accepted
by upstream
This commit is contained in:
Pavel Zhukov 2020-02-21 12:06:57 +01:00
parent e29bd9e41d
commit cff4bf28aa

View File

@ -15,7 +15,7 @@
Summary: Dynamic host configuration protocol software
Name: dhcp
Version: 4.4.2
Release: 4.b1%{?dist}
Release: 5.b1%{?dist}
# NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to
# dcantrell maintaining the package) made incorrect use of the epoch and
@ -63,6 +63,7 @@ Patch27: 0027-Add-missed-sd-notify-patch-to-manage-dhcpd-with-syst.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
@ -237,7 +238,7 @@ sed -i -e 's|/var/db/|%{_localstatedir}/lib/dhcpd/|g' contrib/dhcp-lease-list.pl
#libtoolize --copy --force
autoreconf --verbose --force --install
CFLAGS="%{optflags} -fno-strict-aliasing" \
CFLAGS="%{optflags} -fno-strict-aliasing -fcommon" \
%configure \
--with-srv-lease-file=%{_localstatedir}/lib/dhcpd/dhcpd.leases \
--with-srv6-lease-file=%{_localstatedir}/lib/dhcpd/dhcpd6.leases \
@ -524,6 +525,9 @@ done
%endif
%changelog
* Fri Feb 21 2020 Pavel Zhukov <pzhukov@redhat.com> - 12:4.4.2-5.b1
- Workarounnd for gcc10
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 12:4.4.2-4.b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild