Date: Thu, 28 Dec 1995 01:47:59 -0500 (EST) From: James FitzGibbon <james@else.net> To: current@freebsd.org Subject: make -DCLOBBER clobbers too much... Message-ID: <Pine.LNX.3.91.951228014132.24195D-100000@else.net>
next in thread | raw e-mail | index | archive | help
When doing a 'make world -DCLOBBER', crt0.o is nuked. It's needed to make gnu/lib/limgmp (and libmp), but lib/csu/i386/ (where crt0.o is built) is not targeted until later on in the 'libraries' target. So, lib/csu/i386/ needs to be moved from below secure/ to just below lib/termcap/. Additionally, if this fails, you end up with a bunch of libraries missing that are needed in target 'lib-tools' (because the -DCLOBBER nuked them). These include crt0.o, scrt0.o, libgcc.a, libc, and libmalloc. One is left to dig and manually re-make these libraries, or complete the rest of the build manually (since doing a make world again will fail time and again). This may be taking the idea of pre-targets a little far, but what about a target that builds these critical libraries only if they are missing? When they are built, the $CLEANDIR variable could be left off of the line so that when they are rebuilt during target 'libraries', the object aren't trashed. j.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.91.951228014132.24195D-100000>