From 941f5644d18b751693bf086c4af1dc21cae558d8 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 18 Apr 2018 10:32:20 -0500 Subject: Add the flags linux kernel build checks for. --- toys/posix/getconf.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'toys') diff --git a/toys/posix/getconf.c b/toys/posix/getconf.c index adc96e64..a97bc1af 100644 --- a/toys/posix/getconf.c +++ b/toys/posix/getconf.c @@ -107,15 +107,20 @@ char *limit_names[] = { "_POSIX2_RE_DUP_MAX" }; +// Names that default to blank +char *other_names[] = { + "LFS_CFLAGS", "LFS_LDFLAGS", "LFS_LIBS" +}; + void getconf_main(void) { - char **names[] = {sysconf_names, confstr_names, limit_names}, + char **names[] = {sysconf_names, confstr_names, limit_names, other_names}, **args; - int i, j, lens[] = {ARRAY_LEN(sysconf_names), - ARRAY_LEN(confstr_names), ARRAY_LEN(limit_names)}; + int i, j, lens[] = {ARRAY_LEN(sysconf_names), ARRAY_LEN(confstr_names), + ARRAY_LEN(limit_names), ARRAY_LEN(other_names)}; if (toys.optflags&FLAG_l) { - for (i = 0; i<3; i++) for (j = 0; j