[uClibc]TARGET_ARCH patch for Rules.mak

Miles Bader miles at lsi.nec.co.jp
Wed Jan 9 07:55:19 UTC 2002


Here's a patch to make this change to `Rules.mak':

   revision 1.58
   date: 2002/01/01 22:16:45;  author: andersen;  state: Exp;  lines: +19 -2
   Support arch specific optimizations (examples shown for x86 and ARM).
   Autodetect target architecture by asking the compiler.

not screw up on the v850.

Note that it probably should only set TARGET_ARCH automatically if it's
not already defined in the Config file; also, the various error messages
etc., still refer to `not setting TARGET_ARG'.


--- Rules.mak.~1.59.~	Wed Jan  9 16:43:27 2002
+++ Rules.mak	Wed Jan  9 16:44:53 2002
@@ -39,7 +39,8 @@ GCCINCDIR = ${shell $(CC) -print-search-
 NATIVE_ARCH = ${shell uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \
 		-e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/ppc/powerpc/g'}
 TARGET_ARCH=${shell $(CC) -dumpmachine | sed -e s'/-.*//' -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \
-		-e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/ppc/powerpc/g'}
+		-e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/ppc/powerpc/g' \
+		-e 's/v850.*/v850/g'}
 
 # Some nice architecture specific optimizations
 ifndef OPTIMIZATION


-Miles
-- 
Occam's razor split hairs so well, I bought the whole argument!



More information about the uClibc mailing list