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:
 

-- 
http://linuxfromscratch.org/mailman/listinfo/hlfs-book
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to