tech-pkg archive

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

Re: Cross-compiling pkgsrc



> Date: Mon, 4 Sep 2023 10:25:06 -0600
> From: Brook Milligan <brook%nmsu.edu@localhost>
> 
> Is this the best reference for how to cross-compile pkgsrc?
> 
> 	https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/doc/HOWTO-use-crosscompile

Yes, that's right.

> To test this, I have tried to compile misc/screen on Darwin for
> ebvarm-earamv7hf.  The NetBSD tools, etc. are all built with
> build.sh and the release image works fine on the target arm machine.

Unfortunately, it only supports cross-architecture compilation -- not
cross-OS compilation.  So you can use it to build packages for
NetBSD/earmv7hf using, say, NetBSD/amd64, but not using macOS.

Fortunately, I am sitting on some changes to extend this to cross-OS
compilation, so soon it will be possible.  But I'm busy working on
getting netbsd-10 out the door, so it won't be until after 2023Q3 is
out that I'll get back to pkgsrc cross-compilation.


Home | Main Index | Thread Index | Old Index