compiling.hss 1.5 KB

123456789101112131415161718192021222324252627
  1. [Main]
  2. Title=Recompiling ld-tigcc and ar-tigcc
  3. [Top]
  4. Recompiling <CODE>ld-tigcc</CODE> and <CODE>ar-tigcc</CODE> (or the
  5. corresponding link DLL) from source may be useful if you want to make the
  6. linker as efficient as possible by disabling certain features. Recompilation
  7. requires <A HREF="http://gcc.gnu.org/">GCC</A> and
  8. <A HREF="http://www.gnu.org/software/make/">GNU make</A>. If you are using
  9. Linux, you may simply run <CODE>make</CODE> in the source code directory; the
  10. same is probably true for other Unix variants. If you are using Windows, you
  11. need to download <A HREF="http://www.mingw.org/msys.html">MSYS</A> or make
  12. some minor modifications to the makefile.
  13. <BR><BR>
  14. If you only want to disable some features, you can take a look at the
  15. definitions in the makefile (the file called <CODE>Makefile</CODE>). The
  16. <CODE>DEFINES</CODE> variable contains the general features to be included;
  17. <CODE>EXE_DEFINES</CODE> contains the features that should only be included
  18. in the executable files (not in the DLL). All available definitions are
  19. documented at the top of <CODE>generic.h</CODE>.
  20. <BR><BR>
  21. For example, if you want to disable support for the AmigaOS files generated
  22. by the <A HREF="$$INFOLINK(a68k)">A68k Assembler</A>, you may simply remove
  23. the <B>'-DAMIGAOS_SUPPORT'</B> definition from the <CODE>DEFINES</CODE>
  24. variable. Note that some combinations are invalid; for example, if you
  25. disable support for all object file formats, you will get a "file format not
  26. recognized" error whenever you try to link some files.