aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2020-07-06 21:39:14 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2020-07-06 21:39:14 +0000
commit4dfc952a8d7cd65d1af129382c737026eef9ff68 (patch)
treefbeca1c2da014c5155260d697949d883cc3d69f1
parent38d715f78937d5a641d06affb82e57bfe8b3e580 (diff)
downloadsrc-4dfc952a8d7cd65d1af129382c737026eef9ff68.tar.gz
src-4dfc952a8d7cd65d1af129382c737026eef9ff68.zip
Fix cleandir target post r362973
Reported by: mmacy
Notes
Notes: svn path=/head/; revision=362978
-rw-r--r--stand/defs.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/defs.mk b/stand/defs.mk
index a36bfb9acfa8..16a1871eff1b 100644
--- a/stand/defs.mk
+++ b/stand/defs.mk
@@ -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