From ff85458032f6762b15057bbb7c39f492bc2dda08 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 14 Mar 1998 13:58:21 +0000 Subject: [PATCH] Don't force NOPIC or NOSHARED for building tools in the NOCLEAN case, so that dirtier-than-previously tools aren't left lying around to be installed. Filter out NOPIC from ${MK_FLAGS} for `make ${OBJDIR}' for ld (and some other things), so that the obj dir for ld/rtld always gets re-made. Fixed a literal "make". --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a8a4a8f49b1a..ee91a1c27922 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.162 1998/03/12 13:19:59 bde Exp $ +# $Id: Makefile,v 1.163 1998/03/13 09:41:58 bde Exp $ # # While porting to the another architecture include the bootstrap instead # of the normal build. @@ -138,9 +138,15 @@ SUPFLAGS?= -v # # While building tools for bootstrapping, we don't need to waste time on -# shared or profiled libraries, shared linkage, or documentation. +# shared or profiled libraries, shared linkage, or documentation, except +# when the tools won't get cleaned we must use the defaults for shared +# libraries and shared linkage (and this doesn't waste time). # +.if defined(NOCLEAN) +MK_FLAGS= -DNOINFO -DNOMAN -DNOPROFILE +.else MK_FLAGS= -DNOINFO -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED +.endif # # world @@ -445,7 +451,7 @@ bootstrap: rm -f ${DESTDIR}/usr/src/sys ln -s ${.CURDIR}/sys ${DESTDIR}/usr/src cd ${.CURDIR}/include && find -dx . | cpio -dump ${DESTDIR}/usr/include - cd ${.CURDIR}/include && make symlinks + cd ${.CURDIR}/include && ${MAKE} symlinks .endif cd ${.CURDIR}/usr.bin/make && ${MAKE} ${MK_FLAGS} depend && \ ${MAKE} ${MK_FLAGS} all && \ @@ -563,7 +569,8 @@ lib-tools: usr.bin/uudecode cd ${.CURDIR}/$d && ${MAKE} ${MK_FLAGS} depend && \ ${MAKE} ${MK_FLAGS} all && \ - ${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR} + ${MAKE} ${MK_FLAGS} install && \ + ${MAKE} ${MK_FLAGS:S/-DNOPIC//} -B ${CLEANDIR} ${OBJDIR} .endfor #