LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-14-2010, 08:32 PM   #1
guodah
LQ Newbie
 
Registered: Sep 2010
Posts: 23

Rep: Reputation: 0
Silly question about Section 5.7 Glibc-2.x


Hi,

In that section (5.7), it says

Quote:
Because Glibc no longer supports i386, its developers say to use the compiler flag -march=i486 when building it for x86 machines. There are several ways to accomplish that, but testing shows that the flag is best placed inside the build variable “CFLAGS”. Instead of overriding completely what Glibc's internal build system uses for CFLAGS, append the new flag to the existing contents of CFLAGS by making use of the special file configparms. The -mtune=native flag is also necessary to reset a reasonable value for -mtune that is changed when setting -march.

case `uname -m` in
i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;;
esac
But I do not know which file I should edit. Should I add "case ... esac" somewhere at all?

Any help is greatly appreciated!

Best Regards,
Dan
 
Old 09-15-2010, 01:28 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You don't need to edit anything yourself, the command given does that for you if needed.

From within the ../glibc-build, just copy/paste the mentioned code in your terminal/console.

Hope this helps.

Last edited by druuna; 09-15-2010 at 12:03 PM. Reason: fixed spelling
 
Old 09-15-2010, 08:58 PM   #3
guodah
LQ Newbie
 
Registered: Sep 2010
Posts: 23

Original Poster
Rep: Reputation: 0
Druuna, thanks for the help! I see it now!
 
Old 09-16-2010, 01:01 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You're welcome
 
  


Reply



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
Error in Section 6.9 glibc-2.8-20080929 FarRed Linux From Scratch 0 04-09-2009 09:16 AM
Error in section 5.7, glibc-2.8-20080929 build FarRed Linux From Scratch 3 04-01-2009 07:39 PM
i have an error with the Glibc package in the section 5.7 robineecc1 Linux From Scratch 1 12-16-2008 04:26 AM
LFS 6.2 Section 5.6 - Error making glibc-2.3.6 dustin_wielenga Linux From Scratch 3 01-05-2008 02:01 PM
LFS 4.1 book install hung at section 6.14: Glibc-2.3.1 SparceMatrix Linux From Scratch 4 05-30-2003 04:56 PM

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

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