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 03-19-2011, 05:41 AM   #1
mzmzmz22
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
glibc cflags


In the LFS book, under 6.8 glibc, this commands setup compiler flags:

case `uname -m` in
i?86) echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" > configparms ;;
esac

but the configparams file is not created.
The output of uname -m is:
root:/sources/glibc-build# uname -m
x86_64

I'm doing something wrong??

Thanks in advance,
 
Old 03-19-2011, 05:52 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,

The echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" > configparms is only executed when the output of uname -m contains i?86. I.e.: i386, i486, i586 or i686.

Your uname -m output is x86_64, so that line is not executed.

Quote:
I'm doing something wrong??
Nope.

Hope this helps.
 
Old 03-19-2011, 06:02 AM   #3
mzmzmz22
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
Hi,

The echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" > configparms is only executed when the output of uname -m contains i?86. I.e.: i386, i486, i586 or i686.

Your uname -m output is x86_64, so that line is not executed.

Nope.

Hope this helps.
ok thanks, I just ask because this is the most important / time consuming compilation task under LFS and I need to be sure. I see that the compilation is done using default O2, but I imagine that it's ok. Thanks again.
 
  


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
Cflags bong.mau Programming 1 04-30-2007 11:08 AM
cflags exodist Linux - Software 2 01-14-2005 07:44 PM
Using CFLAGS and other options vexer Linux From Scratch 7 08-18-2004 09:04 AM
CFLAGS library -l and -i abs Programming 2 04-11-2004 10:03 PM
how to unset cflags? shanenin Linux - Software 4 01-25-2004 09:36 PM

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

All times are GMT -5. The time now is 09:54 PM.

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