diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-07 10:18:14 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-06-07 10:18:14 +0200 |
| commit | d2ba33fac0c8eaf5e83c227080d26b9a8d0937fa (patch) | |
| tree | f9aae9ddc340625cff09ca76a7b1bd056cc8eeb4 /pkg/kernel/kernel.go | |
| parent | e0e534c6c2485161cf80d4ab7f7658c85fabc83f (diff) | |
pkg/kernel: pass CC to oldconfig
Passing in compiler is important since 4.17
(at the very least it's noted in the config).
Diffstat (limited to 'pkg/kernel/kernel.go')
| -rw-r--r-- | pkg/kernel/kernel.go | 3 |
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 } |
