Fix cleandir target post r362973

Reported by:	mmacy
This commit is contained in:
Mitchell Horne 2020-07-06 21:39:14 +00:00
parent 38d715f789
commit 4dfc952a8d

View File

@ -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