LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-12-2006, 12:30 PM   #1
midiox
Member
 
Registered: Oct 2005
Location: Rezekne, Latvia
Distribution: LFS
Posts: 38

Rep: Reputation: 15
How to eliminate the compiler tool chain itself after compilation is complete?


Look here:
http://www-128.ibm.com/developerwork...xw01BuildLinux
It is written "It is feasible, for instance, to eliminate the compiler tool chain itself after compilation is complete."
Has anyone tried that and how it can be done safely? I need to get rid of gcc and binutils and all the development things without any bad consequences...
Don't ask why, I just need that
Thanks

Last edited by midiox; 06-12-2006 at 12:32 PM.
 
Old 06-12-2006, 12:40 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
have you tried "make uninstall" (i haven't)??

in any case, my suggestion would be to use a package system when you get into chapter 6, so that you will have total and easy control over situations like what you are currently facing...

http://www.linuxfromscratch.org/hint...nd_pkg_man.txt

just my ...
 
Old 06-12-2006, 12:51 PM   #3
midiox
Member
 
Registered: Oct 2005
Location: Rezekne, Latvia
Distribution: LFS
Posts: 38

Original Poster
Rep: Reputation: 15
Oh, thanks, good idea! I'll try doing it with some package manager system and then I'll see if it works or I just have screwed all up Anyway, interesting experiment...
But what if I try to not to build binutils and GCC at all in chapter 6? I suspect that then all other packages will be dependent on GCC in /tools folder? Are there many such packages that are really dependent on GCC libs at runtime?
 
Old 06-12-2006, 01:00 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
regarding the building of binutils and gcc in chapter 6: i would recommend that you FBBG (follow book, book good)... it's okay to experiment, and in fact it's a vital part of learning, but keep in mind that the people who wrote the book did a fair share of experimenting themselves and what you are reading is part of their results...

another idea about the gcc/binutils package thing: you could install another gcc/binutils copy into a temporary folder (as if like you were creating a package) and then you'll be able to see exactly which files got installed in your system by looking in the temp folder... you would then know exactly which files to eliminate...

of course, this is basically the same as making a package, installing it (letting it replace all your manually installed files), and then removing the package... it's just that by doing it manually you wouldn't have to deal with a package solution at all...

Last edited by win32sux; 06-12-2006 at 01:22 PM.
 
  


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
IBM HTTP Server on Linux mariamaroni Linux - Software 0 12-05-2005 05:32 AM
What's going on with http://www.mplayer.hu? ioan123 General 3 10-19-2005 01:19 PM
Where is the Embedded Linux "HOWTO" at http://www.tldp.org ? t3gah General 14 06-06-2005 06:35 AM
http://www.tigerdirect.com and others WarlockofVirgo General 2 11-02-2004 01:14 AM
http://www.granitecanyon.com/ Stimm LQ Suggestions & Feedback 2 10-10-2000 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:39 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration