Building freebsd on another OS

Damjan Jovanovic damjan.jov at gmail.com
Tue Mar 19 03:44:36 UTC 2019


On Tue, Mar 19, 2019 at 2:04 AM Eric Joyner <erj at freebsd.org> wrote:

> On Sun, Mar 17, 2019 at 6:35 AM Hans Petter Selasky <hps at selasky.org>
> wrote:
>
> >
> > See the freebsd-build utils package for Linux.
> >
> > --HPS
> >
> >
> Is there anything for Windows?
>
>
>
FreeBSD uses ELF binaries.
Microsoft's compilers only generate PE binaries.
Cygwin also generates PE binaries, optionally linked to its libraries.
Mingw and mingw-w64, same story.

You need some sort of cross-compiler that generates ELF binaries.
That new "Windows Subsystem for Linux" (WSL) found on Windows 10 might be a
good starting point, as it uses ELF binaries natively, and its C compiler
(GCC?) presumably generates ELF.


More information about the freebsd-current mailing list