summaryrefslogtreecommitdiff
path: root/kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel.c')
-rw-r--r--kernel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel.c b/kernel.c
index b02e46d..d0c0e89 100644
--- a/kernel.c
+++ b/kernel.c
@@ -1439,9 +1439,11 @@ int check_cc_version(Options *op, Package *p)
* If we're building/installing for a different kernel, then we
* can't do the gcc version check (we don't have a /proc/version
* string from which to get the kernel's gcc version).
+ * If the user passes the option no-cc-version-check, then we also
+ * shouldn't perform the cc version check.
*/
- if (op->kernel_name) {
+ if (op->ignore_cc_version_check) {
setenv("IGNORE_CC_MISMATCH", "1", 1);
return TRUE;
}