From 61fbd61b59e7a6fc70a588c0fe1dad69aee30aba Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 25 Apr 2020 20:24:41 +0000 Subject: [PATCH] Fix race between prebuilding libsbuf and libgeom The latter needs the former, but with a multi-job build on a fast machine, the race is sometimes lost. This leads to "ld: error: unable to find library -lsbuf", when linking libgeom.so. Submitted by: kevans MFC after: 3 days --- Makefile.inc1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index f005aea9f403..a303bc9d4aa6 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -2760,7 +2760,7 @@ gnu/lib/libdialog__L: lib/msun__L lib/ncurses/ncursesw__L _prebuild_libs+= lib/libc++ .endif -lib/libgeom__L: lib/libexpat__L +lib/libgeom__L: lib/libexpat__L lib/libsbuf__L lib/libkvm__L: lib/libelf__L .if ${MK_LIBTHR} != "no"