aboutsummaryrefslogtreecommitdiff
path: root/lib/ncurses/ncurses
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-08-03 17:53:15 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2020-08-03 17:53:15 +0000
commit338b22234b4f300b948ea8d1292bc023976516b8 (patch)
tree60063423d38ca170a929bc20e5ec17e96a7151bf /lib/ncurses/ncurses
parent9ca3eaf0bdc12f0609580207aa1afbe51d99f080 (diff)
downloadsrc-338b22234b4f300b948ea8d1292bc023976516b8.tar.gz
src-338b22234b4f300b948ea8d1292bc023976516b8.zip
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
Notes
Notes: svn path=/head/; revision=363804
Diffstat (limited to 'lib/ncurses/ncurses')
-rw-r--r--lib/ncurses/ncurses/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ncurses/ncurses/Makefile b/lib/ncurses/ncurses/Makefile
index 5b61df983ce9..efa38691115e 100644
--- a/lib/ncurses/ncurses/Makefile
+++ b/lib/ncurses/ncurses/Makefile
@@ -345,7 +345,7 @@ codes.c: MKcodes.awk
${AWK} -f ${NCURSES_DIR}/ncurses/tinfo/MKcodes.awk bigstrings=${USE_BIG_STRINGS} ${NCURSES_DIR}/include/Caps > codes.c
lib_gen.c: MKlib_gen.sh curses.h ncurses_dll.h
- LC_ALL=C sh ${NCURSES_DIR}/ncurses/base/MKlib_gen.sh "${CPP:N${CCACHE_BIN}} ${CPPFLAGS}" \
+ LC_ALL=C sh ${NCURSES_DIR}/ncurses/base/MKlib_gen.sh "${CPP:N${CCACHE_BIN}} ${CFLAGS}" \
"${AWK}" generated < curses.h >$@
lib_keyname.c: keys.list MKkeyname.awk