LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-02-2009, 06:01 PM   #1
HSN
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, 04:49 AM   #2
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

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


Reply


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 09:30 PM
env settings and gcc libraries jenser2 Linux - Newbie 2 04-07-2008 01:27 PM
Need help in adding PowerPC libraries to GCC 3.3.4 rmurthy Linux - Software 0 12-07-2005 09:52 AM
gcc-libraries yashwantpinge Programming 3 11-22-2005 12:17 AM
C libraries with GCC compiler Ciccio Programming 2 12-02-2002 11:20 AM


All times are GMT -5. The time now is 06:35 PM.

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