getconf: Report invalid variables as errors
Printing `undefined` to stdout means that the variable is valid but not set. Instead, report an error in this case. linux 4.13 appends the result of `getconf LFS_CFLAGS` to HOSTCFLAGS, even if it prints `undefined`. This is arguably a bug in the Makefile, but even so, getconf shouldn't report that unsupported variables are valid.
This commit is contained in:
parent
ed78aef5b1
commit
c225d88d49
|
@ -32,7 +32,7 @@ and limits.h (Minimum and Maximum).
|
||||||
.sp
|
.sp
|
||||||
If
|
If
|
||||||
.Ar var
|
.Ar var
|
||||||
is not defined or has not been found,
|
is not defined,
|
||||||
.Nm
|
.Nm
|
||||||
writes "undefined" to stdout.
|
writes "undefined" to stdout.
|
||||||
.Sh OPTIONS
|
.Sh OPTIONS
|
||||||
|
@ -48,7 +48,7 @@ was matched and its value written successfully.
|
||||||
.It 1
|
.It 1
|
||||||
An error occured or
|
An error occured or
|
||||||
.Ar var
|
.Ar var
|
||||||
was neither defined nor found.
|
was invalid.
|
||||||
.El
|
.El
|
||||||
.Sh STANDARDS
|
.Sh STANDARDS
|
||||||
The
|
The
|
||||||
|
|
Loading…
Reference in New Issue
Block a user