Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jun 1998 21:35:49 +0200 (CEST)
From:      Joachim Kuebart <joki@kuebart.stuttgart.netsurf.de>
To:        freebsd-current@FreeBSD.ORG (FreeBSD Current)
Subject:   /usr/src/Makefile and ELF buildworld
Message-ID:  <199806191935.VAA28942@yacht.domestic.de>

next in thread | raw e-mail | index | archive | help
Hi,

I need those patches against /usr/src/Makefile to make an ELF world. 
Are they OK?

Index: Makefile
===================================================================
RCS file: /usr/CVS-Repository/src/Makefile,v
retrieving revision 1.203
diff -u -r1.203 Makefile
--- Makefile	1998/06/17 09:34:42	1.203
+++ Makefile	1998/06/19 19:28:49
@@ -502,10 +502,11 @@
 	cd ${.CURDIR}/usr.bin/yacc; ${MAKE} ${MK_FLAGS} ${_DEPEND}; \
 		${MAKE} ${MK_FLAGS} all; \
 		${MAKE} ${MK_FLAGS} -B install ${CLEANDIR} ${OBJDIR}
+# sh needs the lex libs, so build them!
 	cd ${.CURDIR}/usr.bin/lex; ${MAKE} bootstrap; \
 		${MAKE} ${MK_FLAGS} ${_DEPEND}; \
-		${MAKE} ${MK_FLAGS} -DNOLIB all; \
-		${MAKE} ${MK_FLAGS} -DNOLIB -B install ${CLEANDIR}
+		${MAKE} ${MK_FLAGS} all; \
+		${MAKE} ${MK_FLAGS} -B install ${CLEANDIR}
 .if !defined(NOOBJDIR)
 	cd ${.CURDIR}/usr.bin/lex; ${MAKE} ${OBJDIR}
 .endif
@@ -564,9 +565,13 @@
 .else
 	cd ${.CURDIR}/lib/libtelnet;		${MAKE} beforeinstall
 .endif
+.if exists(${.CURDIR}/lib/csu/${MACHINE}-${BINFORMAT})
+	cd ${.CURDIR}/lib/csu/${MACHINE}-${BINFORMAT};	${MAKE} beforeinstall
+.else
 .if exists(${.CURDIR}/lib/csu/${MACHINE})
 	cd ${.CURDIR}/lib/csu/${MACHINE};	${MAKE} beforeinstall
 .endif
+.endif
 	cd ${.CURDIR}/lib/libalias;		${MAKE} beforeinstall
 	cd ${.CURDIR}/lib/libc;			${MAKE} beforeinstall
 	cd ${.CURDIR}/lib/libcalendar;		${MAKE} beforeinstall
@@ -661,7 +666,11 @@
 .if exists(lib/csu/${MACHINE}.pcc)
 _csu=lib/csu/${MACHINE}.pcc
 .else
+.if exists(lib/csu/${MACHINE}-${BINFORMAT})
+_csu=lib/csu/${MACHINE}-${BINFORMAT}
+.else
 _csu=lib/csu/${MACHINE}
+.endif
 .endif
 
 .if !defined(NOSECURE) && !defined(NOCRYPT)

cu Jo

---------------------------------------------------------------------
FreeBSD: The Power to Serve                  <http://www.freebsd.org>;
Joachim Kuebart
Tel: +49 711 653706          Replicants are like any other machine --
Germany                      they're either a benefit or a hazard.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806191935.VAA28942>