Author: lwhsu
Date: Wed Nov 20 16:54:21 2019
New Revision: 354900
URL: https://svnweb.freebsd.org/changeset/base/354900

Log:
  Use the correct variable, also limit the scope to bfd
  
  PR:           242109
  Reported by:  jhb
  Sponsored by: The FreeBSD Foundation

Modified:
  head/usr.sbin/jail/Makefile

Modified: head/usr.sbin/jail/Makefile
==============================================================================
--- head/usr.sbin/jail/Makefile Wed Nov 20 16:35:58 2019        (r354899)
+++ head/usr.sbin/jail/Makefile Wed Nov 20 16:54:21 2019        (r354900)
@@ -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
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to