From f10ddee841163452558a912924b0fa9c9c44fb0e Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Wed, 20 Nov 2019 16:35:58 +0000 Subject: [PATCH] Limit the workaround to riscv only PR: 242109 Sponsored by: The FreeBSD Foundation --- usr.sbin/jail/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/jail/Makefile b/usr.sbin/jail/Makefile index 0a6eb7b60e1b..96a14f5313a6 100644 --- a/usr.sbin/jail/Makefile +++ b/usr.sbin/jail/Makefile @@ -18,7 +18,9 @@ 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" CFLAGS+=-Wl,--no-relax +.endif .if ${MK_INET6_SUPPORT} != "no" CFLAGS+= -DINET6