tech-x11 archive

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

Re: Building xsrc natively



On Fri, Nov 13, 2026 at 00:04:01 +0000, Bruno Melo wrote:

> What's the way to build xsrc natively, I'm not talking about
> cross-building it.  I'm talking about building the whole xsrc
> natively for my kernel.

I'm not sure what is the perceived difference here.  In particular,
the phrase "natively _for my kernel_" doesn't make much sense to me.

NetBSD is still just a bunch of source code with makefiles.  You can
build parts natively (assuming your native system and the sources you
are building are roughly of the same vintage) with just the native
make and toolchain just tell make to USETOOLS=no

The makefiles that build the x11 bits are under external/mit/xorg.
E.g. to build a custom version of libX11 you can go to
external/mit/xorg/lib/libX11 and do something like

  $ make USETOOLS=no MAKEOBJDIR=obj.custom obj
  $ make USETOOLS=no MAKEOBJDIR=obj.custom ... dependall

-uwe


Home | Main Index | Thread Index | Old Index