[fpc-devel] OpenBsd cross compiler

Pierre Free Pascal pierre at freepascal.org
Mon May 7 13:55:24 CEST 2012


> Hi Pierre, finally I got the time to test this. Sadly, this is the
> "./configure --target=i386-pc-openbsd -program-prefix=i386-openbsd-"
output.
> 
  GNU tools like binutils should normally be
configured using a build directory (not directly in sources)
but I think it's mainly important if you want to use 
the same sources for different targets...

> I'm building this from an x86_64 Linux machine.
> 
> Here's the output:
> 
> loading cache ./config.cache
> checking host system type... x86_64-unknown-linux-gnu
> checking target system type... i386-pc-openbsd
> checking build system type... x86_64-unknown-linux-gnu
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking for x86_64-unknown-linux-gnu-ar... no
> checking for ar... (cached) ar
> checking for x86_64-unknown-linux-gnu-as... no
> checking for as... (cached) as
> checking for x86_64-unknown-linux-gnu-dlltool... no
> checking for dlltool... (cached) dlltool
> checking for x86_64-unknown-linux-gnu-ld... no
> checking for ld... (cached) ld
> checking for x86_64-unknown-linux-gnu-nm... no
> checking for nm... (cached) nm
> checking for x86_64-unknown-linux-gnu-ranlib... no
> checking for ranlib... (cached) ranlib
> checking for x86_64-unknown-linux-gnu-windres... no
> checking for windres... (cached) windres
> checking for x86_64-unknown-linux-gnu-objcopy... no
> checking for objcopy... (cached) objcopy
> checking for x86_64-unknown-linux-gnu-objdump... no
> checking for objdump... (cached) objdump
> checking for i386-pc-openbsd-ar... no
> checking for i386-pc-openbsd-as... no
> checking for i386-pc-openbsd-dlltool... no
> checking for i386-pc-openbsd-ld... no
> checking for i386-pc-openbsd-nm... no
> checking for i386-pc-openbsd-ranlib... no
> checking for i386-pc-openbsd-windres... no
> checking whether to enable maintainer-specific portions of Makefiles... no
> creating ./config.status
> creating Makefile
> Leonardo M. Ramé
> http://leonardorame.blogspot.com

  The Makefile was created, so the next step is just to generate the
binaries using
  make all-binutils all-gas all-ld
if that also succeeds, you
should have cross-binutils binaries
that you should be able to install with
  make install-binutils install-gas install-ld
prefix=/your/path/to/cross/binutils/base


Pierre




More information about the fpc-devel mailing list