Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2018 13:28:02 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335369 - head/share/mk
Message-ID:  <201806191328.w5JDS2XP085150@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Tue Jun 19 13:28:02 2018
New Revision: 335369
URL: https://svnweb.freebsd.org/changeset/base/335369

Log:
  Don't use TARGET_ARCH in this file, use MACHINE_ARCH instead.
  
  TARGET_ARCH is not defined when building ports/packages.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/share/mk/bsd.cpu.mk

Modified: head/share/mk/bsd.cpu.mk
==============================================================================
--- head/share/mk/bsd.cpu.mk	Tue Jun 19 12:16:19 2018	(r335368)
+++ head/share/mk/bsd.cpu.mk	Tue Jun 19 13:28:02 2018	(r335369)
@@ -366,7 +366,7 @@ CFLAGS += -mcpu=8540 -Wa,-me500 -mspe=yes -mabi=spe -m
 .endif
 
 .if ${MACHINE_CPUARCH} == "riscv"
-.if ${TARGET_ARCH:Mriscv*sf}
+.if ${MACHINE_ARCH:Mriscv*sf}
 CFLAGS += -march=rv64imac -mabi=lp64
 ACFLAGS += -march=rv64imac -mabi=lp64
 .else



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