From owner-freebsd-current Mon Jan 11 10:23:09 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA07753 for freebsd-current-outgoing; Mon, 11 Jan 1999 10:23:09 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA07725 for ; Mon, 11 Jan 1999 10:23:06 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.1/8.9.1) id KAA96566; Mon, 11 Jan 1999 10:22:33 -0800 (PST) (envelope-from dillon) Date: Mon, 11 Jan 1999 10:22:33 -0800 (PST) From: Matthew Dillon Message-Id: <199901111822.KAA96566@apollo.backplane.com> To: current@FreeBSD.ORG Subject: /usr/obj/elf, /usr/obj/aout, /usr/obj - breaks make all vs make buildworld, and other things. Time to make elf the default ? Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG If I do a 'make buildworld', the object tree is created in /usr/obj/elf rather then /usr/obj. If I then want to make the world again, but without cleaning anything, 'make' alone will not work. Instead, 'make -DNOCLEAN -DNOTOOLS' must be used. The difference appears to be in /usr/src/Makefile.inc0. It does not set up MK_ENV for certain backend targets. # # A generic rule for the backend targets. # ${BKTGTS} : @cd ${.CURDIR}; ${MAKE} ${.TARGET} Is there any reason why we can't have it setup the MK_ENV ? As in the below ? # # A generic rule for the backend targets. # ${BKTGTS} : @cd ${.CURDIR}; ${MK_ENV} ${MAKE} ${.TARGET} Now, I realize that if you cd somewhere deep into /usr/src and type make, it will not use the correct obj tree either. So the question is, is it time to make elf the default ( i.e. /usr/obj ) and just special case a.out ( i.e. /usr/obj/a.out ) ???? My personal opinion is: yes, ELF should now be the default without any OBJFORMAT munging. It would be relatively simple to have the top level make check whether the user's machine is ELF or not, and to only allow the user to ( at this point ) convert his machine from a.out to elf before the user is allowed to compile random source. -Matt Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet Communications & God knows what else. (Please include original email in any response) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message