Pārlūkot izejas kodu

Add in NATIVE_ARCH

Eric Andersen 24 gadi atpakaļ
vecāks
revīzija
dfca181755
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 3
      Rules.mak

+ 5 - 3
Rules.mak

@@ -2,10 +2,10 @@
 #
 # This file contains rules which are shared between multiple Makefiles.  All
 # normal configuration options live in the file named "Config".  You probably
-# should not mess with this file unless you know what you are doing...  -Erik
-# Andersen <andersen@lineo.com> < andersee@debian.org>
+# should not mess with this file unless you know what you are doing...  
+#   -Erik Andersen <andersen@lineo.com> < andersee@debian.org>
 # 
-# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000, 2001 by Lineo, inc.
 #
 # This program is free software; you can redistribute it and/or modify it under
 # the terms of the GNU Library General Public License as published by the Free
@@ -62,6 +62,8 @@ ifeq ($(TARGET_ARCH),m68k)
     CFLAGS += -D__VFORK_MACRO__ -Dconst= -D__const= -D__extension__= 
 endif
 
+NATIVE_ARCH = $(shell uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/' -e 's/arm.*/arm/g' -e 's/m68k.*/m68k/')
+
 # It turns out the currently, function-sections causes ldelf2flt to segfault.
 # So till further notice, this is disabled by default....
 #