diff options
Diffstat (limited to 'extra/config')
-rw-r--r-- | extra/config/symbol.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extra/config/symbol.c b/extra/config/symbol.c index 59c88d253..d02876060 100644 --- a/extra/config/symbol.c +++ b/extra/config/symbol.c @@ -79,6 +79,13 @@ void sym_init(void) sym->type = S_STRING; sym->flags |= SYMBOL_AUTO; sym_add_default(sym, uts.release); + + sym = sym_lookup("TARGET_ARCH", 0); + sym->type = S_STRING; + sym->flags |= SYMBOL_AUTO; + p = getenv("TARGET_ARCH"); + if (p) + sym_add_default(sym, p); } int sym_get_type(struct symbol *sym) |