summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-20 00:53:19 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-20 00:53:19 +0000
commitdfca1817554be7a4e7b90c11f1dbf7e942cd6407 (patch)
tree6da4cf76a941b51117cc02ee1b65f147ad3daa0d /Rules.mak
parent0f6da0c3d9f5db0df760160753a936d7d66d563c (diff)
Add in NATIVE_ARCH
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak8
1 files changed, 5 insertions, 3 deletions
diff --git a/Rules.mak b/Rules.mak
index 5adde3813..8c362f5f8 100644
--- a/Rules.mak
+++ b/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....
#