From 598c1e50049993e7c589671b68d4ac41694cd806 Mon Sep 17 00:00:00 2001 From: John Polstra Date: Wed, 9 Apr 1997 18:59:36 +0000 Subject: [PATCH] Process "lib/csu/i386" at the beginning of the "libraries" target, instead of in the middle of it. Soon, "c++rt0.o" will be linked into all shared libraries. An up-to-date version of it must be in place before any shared libraries are built. This is one piece of the solution for PR gnu/3035 (gcc -shared). --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 1f19482d98de..4623b9662db2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # -# $Id: Makefile,v 1.119 1997/04/02 16:44:06 ache Exp $ +# $Id: Makefile,v 1.120 1997/04/02 17:10:16 ache Exp $ # # Make command line options: # -DCLOBBER will remove /usr/include @@ -458,6 +458,10 @@ lib-tools: # libraries - build and install the libraries # libraries: +.if exists(lib/csu/i386) + cd ${.CURDIR}/lib/csu/i386 && ${MAKE} depend && \ + ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} +.endif .if exists(lib/libcompat) cd ${.CURDIR}/lib/libcompat && ${MAKE} depend && \ ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} @@ -470,10 +474,6 @@ libraries: cd ${.CURDIR}/lib/libtermcap && ${MAKE} depend && \ ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} .endif -.if exists(lib) - cd ${.CURDIR}/lib/csu/i386 && ${MAKE} depend && \ - ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR} -.endif .if exists(gnu) cd ${.CURDIR}/gnu/lib && ${MAKE} depend && \ ${MAKE} ${MK_FLAGS} all install ${CLEANDIR} ${OBJDIR}