aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/kernel/kernel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/kernel/kernel.go')
-rw-r--r--pkg/kernel/kernel.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/kernel/kernel.go b/pkg/kernel/kernel.go
index 454ed8eb3..5bcc0fc42 100644
--- a/pkg/kernel/kernel.go
+++ b/pkg/kernel/kernel.go
@@ -35,7 +35,8 @@ func Build(dir, compiler string, config []byte) error {
}
// One would expect olddefconfig here, but olddefconfig is not present in v3.6 and below.
// oldconfig is the same as olddefconfig if stdin is not set.
- cmd := osutil.Command("make", "oldconfig")
+ // Note: passing in compiler is important since 4.17 (at the very least it's noted in the config).
+ cmd := osutil.Command("make", "oldconfig", "CC="+compiler)
if err := osutil.Sandbox(cmd, true, true); err != nil {
return err
}