I have compiled gcc as a cross compiler so one can compile amiga programs on a computer with
FreeBSD. It is special usefull when one wants to port unix programs to amigaos.
installation:
untar the archive in the /root/ directory:
for bash users:
Add to (or create) ~/.bashrc
export COPTFLAGS='-O3'
export LDFLAGS='-s'
PATH=/root/fsf/gg/bin:$PATH ; export PATH
for csh users:
Add to (or create) ~/.cshrc
setenv COPTFLAGS -O3
setenv LDFLAGS -s
path=(/root/fsf/gg/bin $path)
Copy your amigaos-includes to /root/fsf/gg/m68k-amigaos/sys-include
They are copyright by Amiga and on the DeveloperCD and the FrozenFishCD.
To cross-compile C programs type:
m68k-amigaos-gcc [-O3] [-noixemul] [-resident] [-fbaserel[32]] -o HelloWorld HelloWorld.c -s
To cross-compile a program with a configure script (bash):
CC='m68k-amigaos-gcc' CFLAGS='[-O3] [-noixemul]' LFLAGS='[-noixemul] [-resident] [-fbaserel[32]]' ./configure
compiled with:
gcc v2.95.3 CFLAGS=-O3 -i586
binutils v2.9.1 CFLAGS=-O9 -i586
Note: only pth, pthread and termcap libraries are included.
|