Workaround riscv64 build when using binutils 2.33.1

PR:		242109
Reviewed by:	bapt
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D22457
This commit is contained in:
Li-Wen Hsu 2019-11-20 16:20:49 +00:00
parent 83704cc236
commit 53c772bbd7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354896

View File

@ -15,6 +15,11 @@ 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
CFLAGS+=-Wl,--no-relax
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
.endif