Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 12-20-2006, 10:26 AM   #1
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,

Old 12-21-2006, 04:20 PM   #2
Vitalie Ciubotaru
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
export CFLAGS="-march=i386 -O2" && CXXFLAGS=$CFLAGS
This will produce code executable on ANY x86 machine.

Hope this helps

Old 12-23-2006, 09:56 PM   #3
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.



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

All times are GMT -5. The time now is 07:24 PM.

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