diff --git a/gcc10-fno-common-fix.patch b/gcc10-fno-common-fix.patch new file mode 100644 index 0000000..2d89725 --- /dev/null +++ b/gcc10-fno-common-fix.patch @@ -0,0 +1,13 @@ +diff --git a/src/kmk/make.h b/src/kmk/make.h +index 982cd0c..aa64452 100644 +--- a/src/kmk/make.h ++++ b/src/kmk/make.h +@@ -472,7 +472,7 @@ extern int unixy_shell; + #endif + #ifdef SET_STACK_SIZE + # include +-struct rlimit stack_limit; ++extern struct rlimit stack_limit; + #endif + + struct floc diff --git a/kbuild.changes b/kbuild.changes index 77e762d..bb2f4a0 100644 --- a/kbuild.changes +++ b/kbuild.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 3 05:46:51 UTC 2020 - Martin Liška + +- Add gcc10-fno-common-fix.patch in order to fix boo#1160274. + ------------------------------------------------------------------- Tue Dec 17 16:11:30 UTC 2019 - Martin Pluskal diff --git a/kbuild.spec b/kbuild.spec index e3c8c25..0a264fd 100644 --- a/kbuild.spec +++ b/kbuild.spec @@ -1,7 +1,7 @@ # # spec file for package kbuild # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -39,6 +39,7 @@ Patch11: kbuild-gcc7.patch Patch12: use-alloca.patch Patch13: glob-lstat.patch Patch14: glob-interface.patch +Patch15: gcc10-fno-common-fix.patch BuildRequires: automake BuildRequires: bison BuildRequires: flex @@ -74,6 +75,7 @@ The goals of the kBuild framework: %patch12 %patch13 -p1 %patch14 -p1 +%patch15 -p1 %build export CFLAGS="%{optflags}"