From ef66b4e28afc0ddfa63078585e5c74e469aa7a14 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Fri, 25 Sep 2020 15:00:40 +0800 Subject: [PATCH] spec: [gcc10] Fix gcc10 -fno-common compile issue until upstream fixes this change has given better compatible with gcc10 toolchain, should be maintained util upstream fixes 'multiple definition ...' warnings Fix gcc10 -fno-common compile issue for compatible with gcc10 build Signed-off-by: weitao zhou --- dhcp.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dhcp.spec b/dhcp.spec index dad113c..8f082cb 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -1,7 +1,7 @@ # SystemTap support is disabled by default %{!?sdt:%global sdt 0} -%define anolis_release .0.1 +%define anolis_release .0.2 #http://lists.fedoraproject.org/pipermail/devel/2011-August/155358.html %global _hardened_build 1 @@ -395,7 +395,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 \ @@ -706,6 +706,9 @@ done %endif %changelog +* Tue Nov 23 2021 Weitao Zhou - 12:4.3.6-44.0.2.1 +- Fix gcc10 -fno-common compile issue for compatible with gcc10 build + * Mon Jul 19 2021 yangxiaoxuan - 12:4.3.6-44.0.1.1 - Rebrand for Anolis OS - cherry-pick [7fb1e61] -- Gitee