Services - tools - models - for embedded software development
Embecosm divider strip
Prev  Next

3.6.2.  Rebuilding GCC

The build and install process for the compiler is identical:

make all
make install
	

The final stage is to populate the target specific directory. GCC will look here for a sys-include directory. This can be linked to the parent include directory, which will have been populated by the uClibc install process (including any Linux include files used by uClibc).

The lib sub-directory will be used by the linker from GCC to complete linking of compiled programs. This cannot be simply linked, since not all of the main library should appear here. Instead, the relevant library and object files are linked here.

In the examples given here, the install directory is /opt/or32. The following commands would set the target specific directory up appropriately.

cd /opt/or32/or32-uclinux
ln -s ../include sys-include
cd lib
ln -s ../../lib/*.* .
	
[Important]Important

The MOF instructions suggest copying the library files into the lib directory. However linking is preferable, since when the uClibc is rebuilt, any changes will also appear in the lib directory.

Embecosm divider strip