Go to the first, previous, next, last section, table of contents.

Building the Pascal crosscompiler

Once you have verified the C crosscompiler, the Pascal cross-compiler can be configured and built. Note that the `configure' script does not require any cross-compiler related switches because GPC inherits all of this from GNU CC.

Sample output for a FreeBSD->msdos cross configuration:

--------------------------------------------------------------------------
Configuration summary:
  Building a i386-go32 crosscompiler hosted by i386-unknown-freebsd2.1.0

  GPC sources in:         ../gpc-2.0
  GCC sources in:         ../gcc-2.7.2.1
  GCC object code in:     ../gcc
  GCC version:            2.7.2.1

  Compiler for GPC:       gcc
  Compiler for libgpc.a:  i386-go32-gcc
  Compiler flags:         -g -O

  Cross-ar utility:       i386-go32-ar
  Cross-ranlib utility:   i386-go32-ranlib

  Installation path:      /usr/bin, /usr/lib/gcc-lib/i386-go32/2.7.2.1
--------------------------------------------------------------------------

Now, type `make' to build the compiler and runtime system.

Building a cross-compiler requires cross-binutils for your target, i386-go32 in this examples. If `configure' is not able to find `i386-go32-ar' and/or `i386-go32-ranlib', you may have to run it again with again with --with-ar=your-cross-ar or --with-ranlib=your-cross-ranlib switches.

Then, `make' and `make install' the cross-compiler like you would for a native configuration.


Go to the first, previous, next, last section, table of contents.