From dfca1817554be7a4e7b90c11f1dbf7e942cd6407 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 20 Jan 2001 00:53:19 +0000 Subject: Add in NATIVE_ARCH --- Rules.mak | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Rules.mak') 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 < andersee@debian.org> +# should not mess with this file unless you know what you are doing... +# -Erik Andersen < 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.... # -- cgit v1.2.3