git: <bsd.subdir.mk>: Fix SUBDIR ordering for non-parallel mode
Aaron LI
aly at crater.dragonflybsd.org
Fri Apr 3 17:08:19 PDT 2026
commit f1d43b88a9c653f4aecfdd16e3d2fabc4b7d365d
Author: Aaron LI <aly at aaronly.me>
Date: Thu Apr 2 22:39:52 2026 +0800
<bsd.subdir.mk>: Fix SUBDIR ordering for non-parallel mode
As documented in make(1) man page as well as my tests, the '.ORDER'
directive only applies to the parallel mode (even -j1), so the
${SUBDIR_ORDERED} is actually ignored in the non-parallel mode. As a
result, the build ordering for the subdirectories is their order in
${SUBDIR}, which may be different from ${SUBDIR_ORDERED}, and this can
lead to build failures. For example, gnu/lib/gcc120/libstd++fs failed
to build because it was built before the dependent libstdcxx/headers.
Discussed-with: swildner
Summary of changes:
share/mk/bsd.subdir.mk | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f1d43b88a9c653f4aecfdd16e3d2fabc4b7d365d
--
DragonFly BSD source repository
More information about the Commits
mailing list