From 093d74d417617d7805f22b57ce326ab8357a1661 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Thu, 1 Sep 2022 19:59:01 +0200 Subject: [PATCH] linux60: Fix lto mode check Fixes https://github.com/Frogging-Family/linux-tkg/issues/585 --- linux-tkg-config/prepare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 0b3a5e6..75e30f5 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -718,7 +718,7 @@ _tkg_srcprep() { fi fi # Clang LTO - if [ "$_compiler_name" = "-llvm" ] && [ $_basever -ge 512 ]; then + if [ "$_compiler_name" = "-llvm" ] && ( [[ "$_basever" = 6* ]] || [ $_basever -ge 512 ] ); then if [ "$_lto_mode" = "full" ]; then _enable LTO_CLANG_FULL _disable LTO_CLANG_THIN