Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Back in 1993 ${MACHINE} was a unique way to define objdirs for



details:   https://anonhg.NetBSD.org/src/rev/4cd40a2dc5e2
branches:  trunk
changeset: 349441:4cd40a2dc5e2
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Dec 10 23:12:39 2016 +0000

description:
Back in 1993 ${MACHINE} was a unique way to define objdirs for
every platform. Thus setting OBJMACHINE, allowed one to keep
in-tree objdirs with multiple builds. With the advent of evb*, this
has become impossible until now. Introduce OBJMACHINE_ARCH that
adds ${MACHINE_ARCH} to the objdir so that we have unique objdirs
per build again. Until we restructure things to that this is not
necessary, it is the simplest fix.

diffstat:

 share/mk/bsd.obj.mk |  4 ++--
 usr.bin/make/main.c |  7 ++++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (53 lines):

diff -r 88399a6793f0 -r 4cd40a2dc5e2 share/mk/bsd.obj.mk
--- a/share/mk/bsd.obj.mk       Sat Dec 10 23:03:27 2016 +0000
+++ b/share/mk/bsd.obj.mk       Sat Dec 10 23:12:39 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.obj.mk,v 1.50 2016/12/08 03:25:35 christos Exp $
+#      $NetBSD: bsd.obj.mk,v 1.51 2016/12/10 23:12:39 christos Exp $
 
 .if !defined(_BSD_OBJ_MK_)
 _BSD_OBJ_MK_=1
@@ -37,7 +37,7 @@
 .else
 PAWD?=         /bin/pwd
 
-__objdirsuffix=        ${OBJMACHINE:D.${MACHINE}}
+__objdirsuffix=        ${OBJMACHINE:D.${MACHINE}${OBJMACHINE_ARCH:D-${MACHINE_ARCH}}}
 __objdir=      obj${__objdirsuffix}
 
 __usrobjdir=   ${BSDOBJDIR}${USR_OBJMACHINE:D.${MACHINE}}
diff -r 88399a6793f0 -r 4cd40a2dc5e2 usr.bin/make/main.c
--- a/usr.bin/make/main.c       Sat Dec 10 23:03:27 2016 +0000
+++ b/usr.bin/make/main.c       Sat Dec 10 23:12:39 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.253 2016/12/07 19:57:09 christos Exp $      */
+/*     $NetBSD: main.c,v 1.254 2016/12/10 23:12:39 christos Exp $      */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.253 2016/12/07 19:57:09 christos Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.254 2016/12/10 23:12:39 christos Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
@@ -81,7 +81,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.253 2016/12/07 19:57:09 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.254 2016/12/10 23:12:39 christos Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1122,6 +1122,7 @@
 
        if (!Main_SetVarObjdir("MAKEOBJDIRPREFIX", curdir) &&
            !Main_SetVarObjdir("MAKEOBJDIR", "") &&
+           !Main_SetObjdir("%s.%s-%s", _PATH_OBJDIR, machine, machine_arch) &&
            !Main_SetObjdir("%s.%s", _PATH_OBJDIR, machine) &&
            !Main_SetObjdir("%s", _PATH_OBJDIR))
                (void)Main_SetObjdir("%s%s", _PATH_OBJDIRPREFIX, curdir);



Home | Main Index | Thread Index | Old Index