From e618d6b00189b4e00a8f8669740f52ec0739b38e Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 27 May 2023 20:49:54 +0000 Subject: [PATCH] fix: use gcc 4.8 for Debian 3.11-{1,2} kernels --- distro/debian/debian.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/distro/debian/debian.go b/distro/debian/debian.go index 033fc58..960f563 100644 --- a/distro/debian/debian.go +++ b/distro/debian/debian.go @@ -164,6 +164,11 @@ func kernelRelease(dk DebianKernel) (r Release, err error) { break } + switch dk.Version.ABI { + case "3.11-1", "3.11-2": + gcc = "4.8" + } + switch gcc { case "", "4.4", "4.6", "4.7": // Note that we are catching an empty string, which