linux-xdev

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux-xdev [2007/09/07 07:10] – add a paragraph about a native cross compiler AlexanderLeidingerlinux-xdev [2022/10/27 04:07] (current) – Remove ACL, not required KubilayKocak
Line 1: Line 1:
 ====== Cross development of Linux binaries on a FreeBSD system ====== ====== Cross development of Linux binaries on a FreeBSD system ======
 +
 +Note that the text below is somewhat outdated - current way of setting up a Linux development environment is described at [[LinuxJails]].
  
 Previous to the use of FC4 as the default linux base port cross-developing Linux binaries on a %%FreeBSD%% system required the use of the linux_devtools port. This is not the case anymore. Cross development of Linux binaries requires to do a chroot in to the linux directory (default LINUXBASE: /compat/linux) to not pick up any %%FreeBSD%% native stuff (more or less compatible header files and/or libraries) by accident. Not doing a chroot may work in some cases but requires a little bit of luck if you don't really know what you are doing. Previous to the use of FC4 as the default linux base port cross-developing Linux binaries on a %%FreeBSD%% system required the use of the linux_devtools port. This is not the case anymore. Cross development of Linux binaries requires to do a chroot in to the linux directory (default LINUXBASE: /compat/linux) to not pick up any %%FreeBSD%% native stuff (more or less compatible header files and/or libraries) by accident. Not doing a chroot may work in some cases but requires a little bit of luck if you don't really know what you are doing.
Line 18: Line 20:
  
 In the ports there are the cross-* ports. They can be used to compile a cross compiler for various architectures. All you have to do is to compile the ports and add includes and libs from the linux system your target in your development. In the ports there are the cross-* ports. They can be used to compile a cross compiler for various architectures. All you have to do is to compile the ports and add includes and libs from the linux system your target in your development.
 +
 +----
 +
 +{{tag>HowTo}}
  
  • linux-xdev.1189149016.txt.gz
  • Last modified: 2007/09/07 07:10
  • by AlexanderLeidinger