ncurses: fix path where to find curses.h at bootstrap

after the split, curses.h is now generated by tinfo Makefile, but
still used for a file generated in ncurses lib. Adjust the path to
make sure curses.h is always found
This commit is contained in:
Baptiste Daroussin 2021-10-04 12:31:23 +02:00
parent 16f1ee11e6
commit 27803b54db

View file

@ -173,9 +173,9 @@ SHLIB_LDSCRIPT= libncursesw.ldscript
libncurses.ldscript:
@${ECHO} "INPUT(${SHLIB_NAME} AS NEEDED(-ltinfow))" >$@
lib_gen.c: MKlib_gen.sh curses.h ncurses_dll.h
lib_gen.c: MKlib_gen.sh ${.OBJDIR:H}/tinfo/curses.h ncurses_dll.h
LC_ALL=C sh ${NCURSES_DIR}/ncurses/base/MKlib_gen.sh "${CPP:N${CCACHE_BIN}} ${CFLAGS}" \
"${AWK}" generated < curses.h >$@
"${AWK}" generated < ${.OBJDIR:H}/tinfo/curses.h >$@
expanded.c: MKexpanded.sh
sh ${NCURSES_DIR}/ncurses/tty/MKexpanded.sh "${CC:N${CCACHE_BIN}} -E" ${CFLAGS} >expanded.c