]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Pass the full CFLAGS to cpp for MKlib_gen.sh.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 3 Aug 2020 17:53:15 +0000 (17:53 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 3 Aug 2020 17:53:15 +0000 (17:53 +0000)
commit338b22234b4f300b948ea8d1292bc023976516b8
tree60063423d38ca170a929bc20e5ec17e96a7151bf
parent9ca3eaf0bdc12f0609580207aa1afbe51d99f080
Pass the full CFLAGS to cpp for MKlib_gen.sh.

GCC's cpp was exiting immediately when it failed to find requested
includes (<ncurses_cfg.h> and <ncurses_defs.h>).  clang-cpp emitted an
error for the missing header files but continued processing the file
(thus not honoring any macros defined in the missing headers).

Arguably, the awk script is buggy since it doesn't check the return
value of the command it executes.

Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D25731
lib/ncurses/ncurses/Makefile