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

The officialy sanctioned way is to create tools upfront (e.g. by runing
" tools" or a variant of that) and use nbmake-$arch from the
$TOOLDIR/bin/ directory created by that step.


   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 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


Home | Main Index | Thread Index | Old Index