LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-20-2006, 09:26 AM   #1
tallmtt
Member
 
Registered: Jun 2005
Location: Georgia, USA
Distribution: Arch, Gentoo, Ubuntu
Posts: 91

Rep: Reputation: 15
lfs - old laptop - clfs or lfs


I have an old laptop that would work great without the bloat that many distros encourage. I have built one other lfs system in the past. This laptop does not have enough room for a host system and the build system, which is why I am planning on building it on my amd64 desktop and then transferring a tarball (or more if necessary) to the laptop. The laptop though is of the i386 architecture.

I saw a great response to a similar situation here.

My question is:

If I install an i386 distro on my amd64 desktop to compile lfs , do I need to use the clfs instructions or can I follow the lfs book?

Thanks for any and all help,

Matt
 
Old 12-21-2006, 03:20 PM   #2
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
You do not have to cross-compile. All you have to do is to compile everything without optimization. To ensure the compiler will not optimize, issue
Code:
export CFLAGS="-march=i386 -O2" && CXXFLAGS=$CFLAGS
This will produce code executable on ANY x86 machine.

Hope this helps

Vitalie CIUBOTARU
 
Old 12-23-2006, 08:56 PM   #3
tallmtt
Member
 
Registered: Jun 2005
Location: Georgia, USA
Distribution: Arch, Gentoo, Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
Thanks for your reply - I will do that and when all is done I will post my results.

Matt
 
  


Reply

Tags
clfs, laptop, lfs, old


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
LFS 6.2: made mistake when going from lfs to root setup oldgeek Linux From Scratch 4 11-12-2006 09:00 PM
The differenc between CLFS,BLFS ALFS and LFS sumargin Linux From Scratch 5 09-29-2006 04:46 AM
LFS question - lack of activity in LFS Forum nykey Slackware 4 06-05-2006 05:54 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM


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