]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r357903: ncurses: correct check for gcc >= 5.0
authorKyle Evans <kevans@FreeBSD.org>
Fri, 21 Feb 2020 04:31:30 +0000 (04:31 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 21 Feb 2020 04:31:30 +0000 (04:31 +0000)
commit8390036a5e2b045a3c1ff30cc5b0924309c1c04d
tree6a451184e81e883c794033cf253621cfbf0190bf
parentb2370769c3c67fdced95d7c3990ce19e33b693d2
MFC r357903: ncurses: correct check for gcc >= 5.0

The hack in question is intended to workaround seemingly bogus #line markers
in cpp output. As far as I can tell, llvm cpp doesn't do this by default, so
there's no reason to add -P.

In our /bin/sh, the main incantation should be placed in a sub-shell in
order to properly pipe the output to fgrep.

The main motivation for this change is admittedly to stop emitting the noise
about clang not being gcc in make -s buildworld
contrib/ncurses/ncurses/base/MKlib_gen.sh