
 gas 2.9.1 for Atari MiNT/MagiC
 ------------------------------
 
What do you need for recompiling gas on Atari running MiNT?

 - a MiNT system that's powerfull enough to run GNU configure scripts
 - 28 MB minix hard disc space

Steps for recompiling:

 - apply the patches from diff file

 - disable the directories binutils, ld and gprof because these programs are
   not ported to MiNT.
   	# mv binutils binutils.dis
   	# mv gprof gprof.dis
   	# mv ld ld.dis

 - run configure
     1. gcc hosted on MiNT:
        # configure --prefix=/usr --disable-shared 

     2. for creating a cross-as:
	    # configure --prefix=/usr --disable-shared --target=m68k-atari-mint 

     3. for creating MiNT-as using a cross-gcc:
        # setenv CC mint-gcc
        # setenv AR mint-ar
        # setenv RANLIB echo
        # configure --host=m68k-atari-mint --disable-shared

 - change to directory binutils-2.9.1/bfd and create bfd.h (needed by libopcodes):
 	# make bfd.h
 	
 - change to directory binutils-2.9.1/opcodes and make the lib: 
	# make

 - change to directory binutils-2.9.1/libiberty and make the lib: 
	# make
	  (ignore the ranlib error)	

 - change to directory binutils-2.9.1/gas and make the new gas:
 	# make as-new
 	
 - You've got it!
   Before installing as.new as the assembler for gcc you may strip it for
   saving disc space:
	# strip -k as-new
	# cp as-new /usr/m68k-atari-mint/bin/as


Hamburg, 13.09.98,
Christian Felsch
felsch@tu-harburg.de
