OS Specific Toolchain: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Remove reference to boomstick
Move customization advise from Creating a C Library
Line 263:
== Further Customization ==
 
'''TODO''': Document more various tips and tricks for further customization of OS specific toolchains.
 
=== Changing the Default Include Directory ===
 
If you belong to the group that has decided that the /usr directory is big and evil, you may wish to change the default include directory path. If you wish to do so, you can simply add this to your gcc/gcc/config/myos.h:
 
<source lang="c">
/* Standard include directory. */
#undef STANDARD_INCLUDE_DIR
#define STANDARD_INCLUDE_DIR "/include"
</source>
 
=== Changing the Default Library Directory ===
 
'''TODO''': Document this, but it is done by changing binutils and is a bit more complex
 
=== Start Files Directory ===
You can modify which directory GCC looks for the crt0.o, crti.o and crtn.o in. The path to that directory is stored in <tt>STANDARD_STARTFILE_PREFIX</tt>. For instance, if you wish to have different locations depending on the processor, you can add the following to gcc/gcc/config/i386/myos64.h:
 
<source lang="C">
#undef STANDARD_STARTFILE_PREFIX
#define STANDARD_STARTFILE_PREFIX "/x86_64-myos/lib/"
</source>
 
== Selecting a C Library ==