LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Silly question about Section 5.7 Glibc-2.x (https://www.linuxquestions.org/questions/linux-from-scratch-13/silly-question-about-section-5-7-glibc-2-x-832193/)

guodah 09-14-2010 08:32 PM

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

druuna 09-15-2010 01:28 AM

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.

guodah 09-15-2010 08:58 PM

Druuna, thanks for the help! I see it now!

druuna 09-16-2010 01:01 AM

You're welcome :)


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