-   Linux - Software (
-   -   Modifying some gcc libraries? (

HSN 10-02-2009 06:01 PM

Modifying some gcc libraries?
I'm trying to modify some gcc files inside "libiberty". I'm actually doing some testing on gcc.
After modifying my files, I don't know how to recompile just one file and relink it without the need to recompile everything. Can someone help with this?

clvic 10-03-2009 04:49 AM

Your solution is in using some tool like "make". Most libraries are distributed with a "configure" script inside them, you should follow the instructions (usually in the README file) before continuing.
Basically, after having run "configure", you'll end up with a "Makefile" file. Then, you can run the command "make".
This is the most important point: make will compile only things that are changed! And then relink only parts that must be relinked. So, no useless recompilation will happen.
For more information, you should refer to manpages or to documentation or books, as this is a very important, and long, topic.

All times are GMT -5. The time now is 04:07 PM.