home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / GCC / GERLIB_DEV08B.LHA / gerlib / amiga_lib / HowToRecompile
Encoding:
Text File  |  1993-12-12  |  1.4 KB  |  73 lines

  1. how to recompile libbamiga.a:
  2.  
  3.  
  4. 1) clear your ram-disk from all .s and .o-Files
  5.  
  6. 2) generate stubs with
  7.  
  8.     cd support
  9.     execute MakeGlue
  10.  
  11.    this needs quite a lot of ram, time and later HD-space, you have been warned !
  12.    On my Amiga 4000/40/14 it took more than 40 minutes!
  13.  
  14. 3) correct path to your amiga.lib in the file Install_new_amiga_lib
  15.    (about line 5)
  16.  
  17. 4) cd support
  18.  
  19. 5) execute Install_new_amiga_lib
  20.  
  21. 6) Test the numbers of the objectfiles in the file "RenameObjectFiles" if
  22.    they are correct (obj.xxxx*). if not, correct and go to step 5
  23.  
  24. 7) ready !
  25.  
  26.  
  27.  
  28. how to generate libamiga.a:
  29.  
  30. 1) delete all files in ram:
  31.  
  32. 2) copy your amiga.lib to ram:
  33.  
  34. 3) cd ram:
  35.  
  36. 4) hunk2gcc amiga.lib
  37.  
  38. 5) ar qc libamiga.a obj.*
  39.  
  40. 6) ranlib libamiga.a
  41.  
  42. 7) copy libamiga.a lib:
  43.  
  44. as there is a bug in as/ld or hunk2gcc, there is (at least) one
  45. object module with a serius error. We have to replace that object
  46. with a correct one.
  47.  
  48. 8) cd amiga_lib/support
  49.  
  50. 9) make
  51.  
  52. 10) the compiler will complain that there are some things declared twice.
  53.     Remember the object name in libamiga.a
  54.  
  55. e.g.: gcc:lib/libamiga.a(obj.1137.387704): Definition of symbol _ArgArrayInit (multiply defined)
  56.                          ^^^^^^^^^^^^^^^
  57.  
  58. 11) copy argarrayinitdone.o to ram:
  59.  
  60. 12) cd ram:
  61.  
  62. 13) ar -d -v libamiga.a <objectfile to delete>
  63.  
  64. 14) ar -q -v libamiga.a argarrayinitdone.o
  65.  
  66. 15) ranlib libamiga.a
  67.  
  68. 16) copy ram:libamiga.a lib:
  69.  
  70. 17) Ready !
  71.  
  72.  
  73.