From 553ee2109ee82629b69874e025240ae3f952dcd8 Mon Sep 17 00:00:00 2001 From: apb Date: Fri, 8 Aug 2008 07:30:42 +0000 Subject: [PATCH] Don't bomb if we can't detect the top level obj directory name. Apparently there are things you can do in the environment or mk.conf to set your object directory in a way that the previous code couldn't detect. (This is an interim measure until we can properly detect and create the top level object directory in all cases.) --- build.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 0183faf073cb..9d3ac29e2291 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #! /usr/bin/env sh -# $NetBSD: build.sh,v 1.191 2008/08/05 22:35:32 apb Exp $ +# $NetBSD: build.sh,v 1.192 2008/08/08 07:30:42 apb Exp $ # # Copyright (c) 2001-2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -1022,9 +1022,11 @@ validatemakeparams() "directory ${top_obj_dir}" ;; *) - # we probably failed to set it above - bomb "Please use the -O or -M option" \ - "to set the object directory" + # We don't know what the top level object + # directory should be, so we can't create it. + # A nonexistant directory might cause an error + # when we "make obj" later, but we ignore it for + # now. ;; esac @@ -1179,7 +1181,7 @@ createmakewrapper() eval cat <