Anonymous user
OS Specific Toolchain: Difference between revisions
Prefer binutils-2.25 instructions, update /include and /lib change instructions
[unchecked revision] | [unchecked revision] |
(Prefer binutils-2.25 instructions, update /include and /lib change instructions) |
|||
Line 39:
<source lang="bash">
i[3-7]86-*-myos*)
targ_defvec=
targ_selvecs=
targ64_selvecs=
;;
#ifdef BFD64
x86_64-*-myos*)
targ_defvec=
targ_selvecs=
want64=true
;;
Line 52:
</source>
Be sure to follow the instructions in the comment block above the list and add your entry beneath the comment "<tt>#START OF targmatch.h</tt>". If you like, you could support different object formats (look at other entries in the list, and the contents of 'bfd' for hints) and also provide more than one to the <tt>targ_selvecs</tt> line. For instance, you can support coff object files if you add <tt>i386coff_vec</tt> to the <tt>targ_selvecs</tt> list. For some reason, all the <tt>x86_64</tt> entries in the file file are wrapped in <tt>#ifdef BFD64</tt>, it's probably prudent to do it yourself as well.
Line 273:
=== Changing the Default Include Directory ===
If you wish to change the default include directory from <tt>/usr/include</tt>, you can override the <tt>native_system_header_dir</tt> variable in <tt>gcc/config.gcc</tt> in the case for your OS.
=== Changing the Default Library Directory ===
<source lang="c">
*-*-myos*)
NATIVE_LIB_DIRS='/lib /local/lib'
;;
</source>
=== 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
<source lang="C">
#undef STANDARD_STARTFILE_PREFIX
#define STANDARD_STARTFILE_PREFIX "
</source>
Note that the trailing slash is important as the raw crt*.o names are appended without first adding a slash.
== Selecting a C Library ==
|