From 39d74aae955e53852e4dbfbcd634c61cb8f31747 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 2 Jan 2001 23:50:51 +0000 Subject: Patch from James Graves to get m68k started. Should be just sysdeps/linux/m68k left to hack at this point... --- Rules.mak | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Rules.mak') 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 -- cgit v1.2.3