Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-02-2009, 07:01 PM   #1
LQ Newbie
Registered: Dec 2006
Distribution: Ubuntu
Posts: 25

Rep: Reputation: 15
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?
Old 10-03-2009, 05:49 AM   #2
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc not seeing libraries kuloch Linux - Software 1 08-30-2008 10:30 PM
env settings and gcc libraries jenser2 Linux - Newbie 2 04-07-2008 02:27 PM
Need help in adding PowerPC libraries to GCC 3.3.4 rmurthy Linux - Software 0 12-07-2005 10:52 AM
gcc-libraries yashwantpinge Programming 3 11-22-2005 01:17 AM
C libraries with GCC compiler Ciccio Programming 2 12-02-2002 12:20 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration