[adtools] Re: Availability of earlier compilers than 4.02 for OS4

  • From: David Aiau <r2yum4u@xxxxxxxx>
  • To: adtools@xxxxxxxxxxxxx
  • Date: Tue, 19 Feb 2008 21:28:20 +1200

sorry, was supposed to include this in the first post

the instructions from the osdept:
-------------------------------------------------------------------------------
This is a patch for gcc 2.95.3 to produce an OS4 compiler.

To rebuild the source, get ftp://ftp.gnu.org/pub/gnu/gcc/gcc-2.95.3.tar.gz.
Unpack the source, change to the directory of the source code, and apply the
diff (unpack it first):

> tar xvzf gcc-2.95.3.tar.gz
> cd gcc-2.95.3
> bzcat <path/to/patch/>gcc-2.95.3.patch.bz2 | patch -p 1

To build the compiler, create a new directory (outside the gcc source tree),
and
configure the compiler:

> mkdir gcc-build
> cd gcc-build
> ../gcc-2.95.3/configure --host=<desired host system> --target=ppc-amigaos
--build=<your build system> -enable-languages=c,c++ --enable-haifa
--disable-shared --prefix=<path/to/install/to>
> make
> make install

For more information about configuring and building gcc, see the gcc
doumentation in gcc-2.95.3/install
-------------------------------------------------------------------------------

things that could have been slightly wrong? I created gcc-build outside the
actual gcc-2.95.3 directory... would creating it inside gcc-2.95.3 but outside
the gcc dir make any difference? everything seemed to work just fine... I set
--prefix=/SDK/ and host and build to ppc-amigaos

Regards

David
 
~Yes I am a Kiwi, No, I did not appear as an extra in 'Lord of the Rings'~
______________________________________________________________________________
Amiga Development tools ML - //www.freelists.org/list/adtools
Homepage...................: http://www.sourceforge.net/projects/adtools
Listserver help............: mailto:adtools-request@xxxxxxxxxxxxx?Subject=HELP

Other related posts:

  • » [adtools] Re: Availability of earlier compilers than 4.02 for OS4