From 7cef5cac04a75733803482ab4a7ddb4388b477e6 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Wed, 20 Nov 2019 16:54:21 +0000 Subject: [PATCH] Use the correct variable, also limit the scope to bfd PR: 242109 Reported by: jhb Sponsored by: The FreeBSD Foundation --- usr.sbin/jail/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/jail/Makefile b/usr.sbin/jail/Makefile index 96a14f5313a6..98d5c2074cd9 100644 --- a/usr.sbin/jail/Makefile +++ b/usr.sbin/jail/Makefile @@ -18,7 +18,7 @@ CFLAGS+=-I. -I${.CURDIR} # workaround for GNU ld (GNU Binutils) 2.33.1: # relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR2' # https://bugs.freebsd.org/242109 -.if ${MACHINE_ARCH} == "riscv" +.if ${LINKER_TYPE} == "bfd" && ${MACHINE} == "riscv" CFLAGS+=-Wl,--no-relax .endif