Subject: Re: CVS commit: src
To: Luke Mewburn <lukem@NetBSD.org>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: source-changes
Date: 09/20/2003 17:36:10
On Sun, 21 Sep 2003 01:11:55 +1000
Luke Mewburn <lukem@NetBSD.org> wrote:
> On Sat, Sep 20, 2003 at 10:14:42AM +0000, Julio M. Merino Vidal wrote:
> |
> | Module Name: src
> | Committed By: jmmv
> | Date: Sat Sep 20 10:14:42 UTC 2003
> |
> | Modified Files:
> | src: build.sh
> |
> | Log Message:
> | Set BSDSRCDIR and NETBSDSRCDIR in the make wrapper, so we always get the
> | right source directories (in case they are defined in mk.conf using '?=').
>
> I'm not convinced that it's necessary to do this, especially for
> BSDSRCDIR. The only thing that's still used for in the tree is the
> "fallback" old-style .OBJDIR stuff if you're not using MAKEOBJDIR or
> MAKEOBJDIRPREFIX, and build.sh supports both of those.
Well, I have the following in mk.conf:
BSDSRCDIR?=/home/NetBSD/src
NETBSDSRCDIR?=/home/NetBSD/src
These point to current's sources. But when building 1.6 (/home/NetBSD/src-1.6) it
picks several things from the right directory but it reaches a point where it uses
header files (IIRC) from /home/NetBSD/src, so the build breaks. And explicitly
setting those variables to the proper directory fixed the problem.
About -O or -M problems... I always use -M, and the build finished properly. I'm
just trying a build with -O, and it goes fine...
--
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/