diff --git a/lldpad.spec b/lldpad.spec index 0318062f8cea11f6fb3f37fec76c59810e104850..f4d7252095fe32865d55b90d7736908d2e204cc4 100755 --- a/lldpad.spec +++ b/lldpad.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %global _default_patch_fuzz 2 # https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags @@ -7,7 +8,7 @@ Name: lldpad Version: 1.0.1 -Release: 16.git%{checkout}%{?dist} +Release: 16.git%{checkout}%{anolis_release}%{?dist} Summary: Intel LLDP Agent Group: System Environment/Daemons License: GPLv2 @@ -78,7 +79,7 @@ that use %{name}. %build ./bootstrap.sh -CFLAGS=${CFLAGS:-%optflags -Wno-error}; export CFLAGS; +CFLAGS=${CFLAGS:-%optflags -Wno-error -fcommon}; export CFLAGS; %configure --disable-static # fix the hardened build flags sed -i -e 's! \\\$compiler_flags !&\\\$CFLAGS \\\$LDFLAGS !' libtool @@ -117,6 +118,9 @@ rm -f %{buildroot}%{_libdir}/liblldp_clif.la %{_libdir}/liblldp_clif.so %changelog +* Thu Jan 20 2022 Weitao Zhou - 1.0.1-16.git036e314.0.1 +- Fix gcc10 -fno-common compile issue for compatible with gcc10 build + * Wed Aug 04 2021 Aaron Conole - 1.0.1-16.git036e314 - Update the changelog