svn commit: r362978 - head/stand

Mitchell Horne mhorne at FreeBSD.org
Mon Jul 6 21:39:15 UTC 2020


Author: mhorne
Date: Mon Jul  6 21:39:14 2020
New Revision: 362978
URL: https://svnweb.freebsd.org/changeset/base/362978

Log:
  Fix cleandir target post r362973
  
  Reported by:	mmacy

Modified:
  head/stand/defs.mk

Modified: head/stand/defs.mk
==============================================================================
--- head/stand/defs.mk	Mon Jul  6 21:29:50 2020	(r362977)
+++ head/stand/defs.mk	Mon Jul  6 21:39:14 2020	(r362978)
@@ -151,7 +151,7 @@ CFLAGS+=	-fPIC
 
 # Some RISC-V linkers have support for relaxations, while some (lld) do not
 # yet. If this is the case we inhibit the compiler from emitting relaxations.
-.if ${LINKER_FEATURES:Mriscv-relaxations} == ""
+.if ${MACHINE_CPUARCH} == "riscv" && ${LINKER_FEATURES:Mriscv-relaxations} == ""
 CFLAGS+=	-mno-relax
 .endif
 


More information about the svn-src-all mailing list