aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/jail
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2019-11-21 13:56:16 +0000
committerEd Maste <emaste@FreeBSD.org>2019-11-21 13:56:16 +0000
commit1da495d063aad879b952ff58329224f9be5752c6 (patch)
tree27ec52552d897d57ae4ca988a965642e511ad643 /usr.sbin/jail
parent8491540808d9b00abc2a1ea8e37a697ce4020120 (diff)
Notes
Diffstat (limited to 'usr.sbin/jail')
-rw-r--r--usr.sbin/jail/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.sbin/jail/Makefile b/usr.sbin/jail/Makefile
index 14266be83932..de1e89e708f0 100644
--- a/usr.sbin/jail/Makefile
+++ b/usr.sbin/jail/Makefile
@@ -15,6 +15,13 @@ NO_WMISSING_VARIABLE_DECLARATIONS=
YFLAGS+=-v
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 defined(LINKER_TYPE) && ${LINKER_TYPE} == "bfd" && ${MACHINE} == "riscv"
+CFLAGS+=-Wl,--no-relax
+.endif
+
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
.endif