Use the correct variable, also limit the scope to bfd
PR: 242109 Reported by: jhb Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
f10ddee841
commit
7cef5cac04
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354900
@ -18,7 +18,7 @@ CFLAGS+=-I. -I${.CURDIR}
|
|||||||
# workaround for GNU ld (GNU Binutils) 2.33.1:
|
# workaround for GNU ld (GNU Binutils) 2.33.1:
|
||||||
# relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR2'
|
# relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR2'
|
||||||
# https://bugs.freebsd.org/242109
|
# https://bugs.freebsd.org/242109
|
||||||
.if ${MACHINE_ARCH} == "riscv"
|
.if ${LINKER_TYPE} == "bfd" && ${MACHINE} == "riscv"
|
||||||
CFLAGS+=-Wl,--no-relax
|
CFLAGS+=-Wl,--no-relax
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user