Skip to content

Commit

Permalink
ncurses: fix path where to find curses.h at bootstrap
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bapt committed Oct 4, 2021
1 parent 16f1ee1 commit 27803b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ncurses/ncurses/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27803b5

Please sign in to comment.