Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2010 01:00:48 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212512 - head/usr.bin/xlint
Message-ID:  <201009130100.o8D10mQY042074@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Mon Sep 13 01:00:48 2010
New Revision: 212512
URL: http://svn.freebsd.org/changeset/base/212512

Log:
  Move to using TARGET_CPUARCH instead of TARGET_ARCH.

Modified:
  head/usr.bin/xlint/Makefile.inc

Modified: head/usr.bin/xlint/Makefile.inc
==============================================================================
--- head/usr.bin/xlint/Makefile.inc	Mon Sep 13 00:57:48 2010	(r212511)
+++ head/usr.bin/xlint/Makefile.inc	Mon Sep 13 01:00:48 2010	(r212512)
@@ -5,8 +5,16 @@ WARNS?=		0
 
 .PATH:		${.CURDIR}/../common
 
+# These assignments duplicate much of the functionality of
+# MACHINE_CPUARCH, but there's no easy way to export make functions...
+
+.if defined(TARGET_ARCH)
+TARGET_CPUARCH=${TARGET_ARCH:C/mipse[bl]/mips/:C/armeb/arm/}
+.else
+TARGET_CPUARCH=${MACHINE_CPUARCH}
+.endif
 TARGET_ARCH?=	${MACHINE_ARCH}
-CFLAGS+=	-I${.CURDIR}/../arch/${TARGET_ARCH}
+CFLAGS+=	-I${.CURDIR}/../arch/${TARGET_CPUARCH}
 CFLAGS+=	-I${.CURDIR}/../common
 
 OBJECT_FMT=	ELF



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009130100.o8D10mQY042074>