HomeFreeBSD

Pass the full CFLAGS to cpp for MKlib_gen.sh.

Description

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

Details

Provenance
jhbAuthored on
Reviewer
kevans
Differential Revision
D25731: Pass the full CFLAGS to cpp for MKlib_gen.sh.
Parents
rS363803: Undo r230021 again, further shrinking the diff against upstream.
Branches
Unknown
Tags
Unknown