Workaround GCC 10 multiple definition of `yyin'

Resolves: 1799559

Signed-off-by: Zamir SUN <sztsian@gmail.com>
This commit is contained in:
Zamir SUN 2020-02-09 16:13:03 +08:00
parent 320ae18551
commit 6ffe3cb38e

View File

@ -7,7 +7,7 @@
Name: kabi-dw Name: kabi-dw
Version: 0 Version: 0
Release: 0.16%{?dist} Release: 0.17%{?dist}
Summary: Detect changes in the ABI between kernel builds Summary: Detect changes in the ABI between kernel builds
License: GPLv3+ License: GPLv3+
URL: %{forgeurl} URL: %{forgeurl}
@ -31,6 +31,11 @@ later comparing the text files.
%build %build
#CFLAGS=$RPM_OPT_FLAGS LDFLAGS=$RPM_LD_FLAGS make debug #CFLAGS=$RPM_OPT_FLAGS LDFLAGS=$RPM_LD_FLAGS make debug
# The following option need to be removed once fixed upstream
# https://github.com/skozina/kabi-dw/issues/17
LDFLAGS+=" -z muldefs "
%set_build_flags %set_build_flags
%make_build %make_build
@ -44,6 +49,10 @@ install -m 0755 %{name} %{buildroot}%{_bindir}/
%license COPYING %license COPYING
%changelog %changelog
* Wed Nov 27 2019 Zamir SUN <zsun@fedoraproject.org> - 0-0.17.20191127gitbd56a60
- Workaround "multiple definition of `yyin'"
- Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1799559
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - Packaging variables read or set by %forgemeta
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild