From 6e73105ec5492ebba66b83ced8a62e16f87e0498 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 29 Nov 2011 12:40:49 -0800 Subject: [PATCH] buildworld - Fix parallel build race in ncurses * Generated files must depend on headers during make depend step (at the very least), because make has no idea about the dependencies during that step. --- lib/libncurses/libncurses/Makefile | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/lib/libncurses/libncurses/Makefile b/lib/libncurses/libncurses/Makefile index fe87b20..82b6781 100644 --- a/lib/libncurses/libncurses/Makefile +++ b/lib/libncurses/libncurses/Makefile @@ -310,4 +310,17 @@ INCS= term.h ${.CURDIR}/../include/termcap.h \ ${NCURSESDIR}/include/ncurses_dll.h INCSLINKS=curses.h ${INCLUDEDIR}/ncurses.h +# Make the generated files depend on the headers, otherwise +# the make depend step cannot run -j parallel due to not yet +# knowing what the actual dependencies are. +# +codes.c: ${INCS} +comp_captab.c: ${INCS} +expanded.c: ${INCS} +fallback.c: ${INCS} +lib_gen.c: ${INCS} +lib_keyname.c: ${INCS} +names.c: ${INCS} +unctrl.c: ${INCS} + .include -- 1.7.7.2