Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getconf detection: cope with new compiler messages
conf.sh checks for undefined symbols by parsing compiler output and looking for strings of capital letters and underscores. Modern gcc produces suggestions for replacement variables too, for example: error: '_SC_CLOCKRES_MIN' undeclared here (not in a function); did you mean _POSIX_CLOCKRES_MIN? _SC_CLOCKRES_MIN, ^~~~~~~~~~~~~~~~ _POSIX_CLOCKRES_MIN This causes good variables to be excluded along with bad, causing differences between the builtin and system getconf commands. src/lib/libast/comp/conf.sh: - Only use lines containing 'error:' and ignore everything starting from 'did you mean:'. (Note this scripts sets the locale to C.) Patch from @citrus-it: citrus-it@061a4b1
- Loading branch information