Source-Changes-HG archive

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

[src/trunk]: src/share/mk :U can't be used to test for existence, as the vari...



details:   https://anonhg.NetBSD.org/src/rev/50097d4c97d0
branches:  trunk
changeset: 517869:50097d4c97d0
user:      tv <tv%NetBSD.org@localhost>
date:      Tue Nov 20 17:12:22 2001 +0000

description:
:U can't be used to test for existence, as the variable may contain an
arbitrary value; change back to .if !defined().  Problem noted by
bernd%arresum.inka.de@localhost in PR toolchain/14629.

diffstat:

 share/mk/bsd.obj.mk |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 4fa8634893e5 -r 50097d4c97d0 share/mk/bsd.obj.mk
--- a/share/mk/bsd.obj.mk       Tue Nov 20 17:05:02 2001 +0000
+++ b/share/mk/bsd.obj.mk       Tue Nov 20 17:12:22 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.obj.mk,v 1.35 2001/11/14 22:29:23 tv Exp $
+#      $NetBSD: bsd.obj.mk,v 1.36 2001/11/20 17:12:22 tv Exp $
 
 .if !target(__initialized_obj__)
 __initialized_obj__:
@@ -33,7 +33,10 @@
 __objdir=      obj${OBJMACHINE:D.${MACHINE}}
 
 __usrobjdir=   ${BSDOBJDIR}${USR_OBJMACHINE:D.${MACHINE}}
-__usrobjdirpf= ${USR_OBJMACHINE:U${OBJMACHINE:D.${MACHINE}}}
+__usrobjdirpf=
+.if !defined(USR_OBJMACHINE)
+__usrobjdirpf= ${OBJMACHINE:D.${MACHINE}}
+.endif
 
 .if defined(OBJHOSTMACHINE) && (${MKHOSTOBJ:Uno} != "no")
 # In case .CURDIR has been twiddled by a .mk file and is now relative,



Home | Main Index | Thread Index | Old Index