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