LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 01-24-2009, 06:55 AM   #1
@d4M
LQ Newbie
 
Registered: Sep 2008
Location: Indonesia
Distribution: LFS
Posts: 27

Rep: Reputation: 15
remove the gcc-build, binutils-build, etc after make


can i remove the gcc-build, binutils-build directories,etc after i enter the make command?
 
Old 01-24-2009, 07:04 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,362

Rep: Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910
I don't really know this specific task for LFS, but on a running system it is a good practice to uninstall the build tools after their usage. It is a security measure to prevent intruders to compile their own hacked code using the native architecture of the target system.
 
Old 01-24-2009, 07:11 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

If the LFS book doesn't mention otherwise, you can (must!) remove the compile/build directories after your are finished with them.
This is stated in the LFS book: 5.3. General Compilation Instructions.........

Please read all the documentation before you start, otherwise you will end up with a system that doesn't work and you also will not know what you just did.
 
Old 01-25-2009, 07:00 AM   #4
@d4M
LQ Newbie
 
Registered: Sep 2008
Location: Indonesia
Distribution: LFS
Posts: 27

Original Poster
Rep: Reputation: 15
thank you all....
 
Old 01-25-2009, 06:41 PM   #5
jaydoc
LQ Newbie
 
Registered: Dec 2006
Distribution: Arch Linux, Ubuntu, Gentoo, Zenwalk
Posts: 26

Rep: Reputation: 16
Hi....

WHEN should I delete these build directories...?

As soon as the whole compile - make- install process for each is over, or only at the end of following all instructions under chapter 5...?
 
Old 01-26-2009, 03:05 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

@jaydoc: Read the rest of the thread before you add a (related) question. Maybe the part about reading chapter 5.3 could be of interest to you....
 
Old 01-26-2009, 04:29 AM   #7
jaydoc
LQ Newbie
 
Registered: Dec 2006
Distribution: Arch Linux, Ubuntu, Gentoo, Zenwalk
Posts: 26

Rep: Reputation: 16
yeah... I was confused because some instructions in Chapter 6 were instructing about "original" make files in gcc, and I was afraid that they were referring to the make files that I had already deleted after the first pass.

I later realized I could do a fresh unzip and all went well, and I got to the install headers of Chapter 6, but there I ran into trouble.

Anyway, that is another story.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM
Binutils Build problem LinuxNoob75 Linux From Scratch 6 07-14-2007 10:23 AM
LFS binutils-build error : Pass 1 ramlnx Linux From Scratch 1 07-12-2006 07:06 AM
oops-deleted binutils-build Barnette Linux From Scratch 2 01-14-2005 05:23 PM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 04:07 AM


All times are GMT -5. The time now is 10: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