NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: question; how to build individual userland programs on NetBSD 7-RC3 ?
On Tue, Sep 15, 2015 at 09:31:29PM -0700, r.liegh wrote:
> Can someone explain to me what the process is to build userland tools
> individually?
As Manuel pointed out, the easiest way is forced native compilation with
USETOOLS=never.
The officialy sanctioned way is to create tools upfront (e.g. by runing
"build.sh tools" or a variant of that) and use nbmake-$arch from the
$TOOLDIR/bin/ directory created by that step.
Example:
cd usr.sbin/makefs
$TOOLDIR/bin/nbmake-amd64 -j 20
$TOOLDIR/bin/nbmake-amd64 install
This will use the objdir as setup by the initial build.sh step and not clobber
your source tree with .o files (modulo bugs), plus it will also work for
cross compiling.
But if you don't care about the (temporary) source tree pollution
and only want quick native builds, the USETOOLS=never + make version is
easiest.
Martin
Home |
Main Index |
Thread Index |
Old Index