]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
src.libnames.mk: Include dependencies when bootstrapping from non-FreeBSD
authorJessica Clarke <jrtc27@FreeBSD.org>
Mon, 6 Dec 2021 18:53:48 +0000 (18:53 +0000)
committerJessica Clarke <jrtc27@FreeBSD.org>
Mon, 24 Jan 2022 23:59:09 +0000 (23:59 +0000)
commite3c550db8222276f4cf52640e5a07791c3db972e
tree080a7a1de020b42a3e4fde1142f7e5d61b79c6f6
parent98ad84afd2523a785cdd9b0ccb9a7125f4db2e34
src.libnames.mk: Include dependencies when bootstrapping from non-FreeBSD

When bootstrapping on FreeBSD we use -DNO_SHARED so this case is already
handled correctly, but on non-FreeBSD we set NO_SHARED to no in
Makefile.boot.pre as not all OSes have static libraries available. As a
result, users of libdwarf fail to link during the cross tools stage due
to the newly-introduced dependency of libdwarf on libz.

This should perhaps be reworked to instead leave NO_SHARED as yes but
have an override (either implicit in bsd.prog.mk, or explicit via a new
variable) to turn off just the use of -static.

MFC after: 1 week

(cherry picked from commit f0a6ab51e6da3e385856873b1c1c57a13f1c7eb3)
share/mk/src.libnames.mk