r1578 - branches/Onward/temporary_system

robert at linuxfromscratch.org robert at linuxfromscratch.org
Thu Feb 25 14:50:01 PST 2010


Author: robert
Date: 2010-02-25 15:50:01 -0700 (Thu, 25 Feb 2010)
New Revision: 1578

Modified:
   branches/Onward/temporary_system/glibc.txt
Log:
Use -march=i486 -mtune=native when building Glibc on an x86.

Modified: branches/Onward/temporary_system/glibc.txt
===================================================================
--- branches/Onward/temporary_system/glibc.txt	2010-02-24 10:45:40 UTC (rev 1577)
+++ branches/Onward/temporary_system/glibc.txt	2010-02-25 22:50:01 UTC (rev 1578)
@@ -148,6 +148,12 @@
 LDFLAGS.so += -Wl,--warn-shared-textrel,--fatal-warnings
 EOF
 
+# x86 needs to be built with -march=i486:
+
+case `uname -m` in
+ i?86) echo "CFLAGS += -march=i486 -mtune=native" >> configparms ;;
+esac
+
 # -fPIC is being passed by default by GCC, but is added here for clarity.
 
 # -Wl,--warn-shared-textrel -Wl,--fatal-warnings are added to indicate a problem
@@ -179,6 +185,9 @@
 	$(common-objpfx)libc% $(+postinit),$^) \
 	$(link-extra-libs) $(link-libc) $(+postctorS) $(+postinit)
 EOF
+case `uname -m` in
+ i?86) echo "CFLAGS += -march=i486 -mtune=native" >> configparms ;;
+esac
 
 # Build the Glibc utilities:
 




More information about the hlfs-book mailing list