kernel-2.eclass: Add gcc 10.X compatibility to CPU opt patch
authorMike Pagano <mpagano@gentoo.org>
Wed, 13 May 2020 15:39:22 +0000 (11:39 -0400)
committerMike Pagano <mpagano@gentoo.org>
Wed, 13 May 2020 15:39:22 +0000 (11:39 -0400)
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
eclass/kernel-2.eclass

index 6a6a268b264a90a1b07f65f790715f0bb478dcd5..07af8d8ab2c5b56081780e697a3b70e26d8b652e 100644 (file)
@@ -1243,7 +1243,7 @@ unipatch() {
                                        UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc.patch"
                                        UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch"
                                        UNIPATCH_DROP+=" 5012_enable-cpu-optimizations-for-gcc91.patch"
-                               elif [[ "${GCC_MAJOR_VER}" -eq 9 ]] && [[ ${GCC_MINOR_VER} -ge 1 ]]; then
+                               elif [[ "${GCC_MAJOR_VER}" -ge 9 ]] && [[ ${GCC_MINOR_VER} -ge 1 ]]; then
                                        UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc.patch"
                                        UNIPATCH_DROP+=" 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch"
                                        UNIPATCH_DROP+=" 5011_enable-cpu-optimizations-for-gcc8.patch"