LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   glibc cflags (https://www.linuxquestions.org/questions/linux-from-scratch-13/glibc-cflags-869581/)

mzmzmz22 03-19-2011 05:41 AM

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,

druuna 03-19-2011 05:52 AM

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.

mzmzmz22 03-19-2011 06:02 AM

Quote:

Originally Posted by druuna (Post 4295946)
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.


All times are GMT -5. The time now is 11:04 AM.