Compile FreeBSD for a Different Target

Toad39

New Member


Messages: 8

Hello,

I would like to compile part of the FreeBSD sources (compiling on FreeBSD) for a different target string, e.g. x86_64-pc-linux-gnu. Is there a way to specifiy make to compile for this architecture/target?

Thank you for your consideration,
 

Phishfry

Beastie's Twin

Reaction score: 2,747
Messages: 5,682

Here was my example cross-compiling BBB on amd64
 
OP
T

Toad39

New Member


Messages: 8

Hello,

All I've seen is the cross-compilation of FreeBSD onto different architectures of FreeBSD. Is there a way to compile FreeBSD, specifying the four-field target to compile for?
 

Phishfry

Beastie's Twin

Reaction score: 2,747
Messages: 5,682

Is there a way to compile FreeBSD, specifying the four-field target to compile for?
Could you be more specific what you mean by 'four-field target'?
As you may notice from my instructions, you must set the environment for a specific architecture.
Are you talking about building -STABLE on -RELEASE or something like that?
 

ralphbsz

Son of Beastie

Reaction score: 2,408
Messages: 3,284

Exactly. And that's where I thought the question made no sense: How can you compile FreeBSD for Linux? Either you're compiling to run FreeBSD on the machine, or you're compiling (the Linux source) to run Linux, right? I can not understand what the OP means.
 

Jose

Daemon

Reaction score: 1,082
Messages: 1,305

Gentoo Freebsd had a way to build Freebsd kernel and base using a GNU toolchain. It did have some -freebsd triplets, but I forget what they were. That project died years ago anyway.
 
Top