Source-Changes-HG archive

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

[src/trunk]: src Turn off host-specific objdirs by default. Set MKHOSTOBJ=ye...



details:   https://anonhg.NetBSD.org/src/rev/0858d9ecb9b1
branches:  trunk
changeset: 517561:0858d9ecb9b1
user:      tv <tv%NetBSD.org@localhost>
date:      Wed Nov 14 22:29:23 2001 +0000

description:
Turn off host-specific objdirs by default.  Set MKHOSTOBJ=yes to enable.

diffstat:

 BUILDING            |  13 ++++++++++++-
 BUILDING.mdoc       |  17 ++++++++++++++++-
 share/mk/bsd.obj.mk |   5 ++---
 3 files changed, 30 insertions(+), 5 deletions(-)

diffs (77 lines):

diff -r e699a8195346 -r 0858d9ecb9b1 BUILDING
--- a/BUILDING  Wed Nov 14 22:14:48 2001 +0000
+++ b/BUILDING  Wed Nov 14 22:29:23 2001 +0000
@@ -127,6 +127,17 @@
 
                  Default: ``yes''
 
+     MKHOSTOBJ   Can be set to ``yes'' or ``no''.  If set to ``yes'', then for
+                 programs intended to be run on the compile host, the name,
+                 release, and architecture of the host operating system will
+                 be suffixed to the name of the object directory created by
+                 ``make obj''.  (This allows multiple host systems to compile
+                 NetBSD for a single target.)  If set to ``no'', then programs
+                 built to be run on the compile host will use the same object
+                 directory names as programs built to be run on the target.
+
+                 Default: ``no''
+
      MKINFO      Can be set to ``yes'' or ``no''.  Indicates whether GNU Info
                  files, used for the documentation for most of the compilation
                  tools, will be created and installed during a build.
@@ -451,4 +462,4 @@
 BUGS
      Many platforms are not yet using the USE_NEW_TOOLCHAIN system.
 
-NetBSD                         November 12, 2001                             7
+NetBSD                         November 12, 2001                             8
diff -r e699a8195346 -r 0858d9ecb9b1 BUILDING.mdoc
--- a/BUILDING.mdoc     Wed Nov 14 22:14:48 2001 +0000
+++ b/BUILDING.mdoc     Wed Nov 14 22:29:23 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: BUILDING.mdoc,v 1.9 2001/11/12 23:16:18 tv Exp $
+.\"    $NetBSD: BUILDING.mdoc,v 1.10 2001/11/14 22:29:23 tv Exp $
 .\"
 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -263,6 +263,21 @@
 will be installed during a build.
 .DFLTy
 .
+.It Sy MKHOSTOBJ
+.YorN
+If set to
+.Dq yes ,
+then for programs intended to be run on the compile host,
+the name, release, and architecture of the host operating system
+will be suffixed to the name of the object directory created by
+.Dq make obj .
+(This allows multiple host systems to compile NetBSD for a single target.)
+If set to
+.Dq no ,
+then programs built to be run on the compile host will use the same
+object directory names as programs built to be run on the target.
+.DFLTn
+.
 .It Sy MKINFO
 .YorN
 Indicates whether GNU Info files, used for the documentation for
diff -r e699a8195346 -r 0858d9ecb9b1 share/mk/bsd.obj.mk
--- a/share/mk/bsd.obj.mk       Wed Nov 14 22:14:48 2001 +0000
+++ b/share/mk/bsd.obj.mk       Wed Nov 14 22:29:23 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.obj.mk,v 1.34 2001/11/12 18:49:12 tv Exp $
+#      $NetBSD: bsd.obj.mk,v 1.35 2001/11/14 22:29:23 tv Exp $
 
 .if !target(__initialized_obj__)
 __initialized_obj__:
@@ -35,8 +35,7 @@
 __usrobjdir=   ${BSDOBJDIR}${USR_OBJMACHINE:D.${MACHINE}}
 __usrobjdirpf= ${USR_OBJMACHINE:U${OBJMACHINE:D.${MACHINE}}}
 
-.if (defined(USR_OBJMACHINE) || defined(OBJMACHINE)) && \
-    defined(OBJHOSTMACHINE)
+.if defined(OBJHOSTMACHINE) && (${MKHOSTOBJ:Uno} != "no")
 # In case .CURDIR has been twiddled by a .mk file and is now relative,
 # make it absolute again.
 .if ${__curdir:M/*} == ""



Home | Main Index | Thread Index | Old Index