summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-02 23:50:51 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-02 23:50:51 +0000
commit39d74aae955e53852e4dbfbcd634c61cb8f31747 (patch)
tree78f89c5aa461aa348efb0c207f93087b045937ad /Rules.mak
parent6264eafa58e25b3b67c80b51b8ddc17bc50e2213 (diff)
Patch from James Graves <jgraves@deltamobile.com> to get
m68k started. Should be just sysdeps/linux/m68k left to hack at this point...
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak6
1 files changed, 2 insertions, 4 deletions
diff --git a/Rules.mak b/Rules.mak
index f081affe4..280484aae 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -24,15 +24,13 @@
include $(TOPDIR)Config
-GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")
+GCCINCDIR = $(shell $(CC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")
ARFLAGS=r
CCFLAGS=$(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) -Dlinux -D__linux__ -I$(TOPDIR)include -I$(GCCINCDIR) -I. -D__LIBC__
-# Figure out what arch to build...
-ARCH = $(shell uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/' -e 's/arm.*/arm/g')
-ifeq ($(ARCH), arm)
+ifeq ($(TARGET_ARCH), arm)
ARCH_CFLAGS=-fpic
endif