stand: boot2: fix build with xtoolchain-llvm90

ufsread.c grows a dependency on __ashldi3 with llvm90. Grab ashldi3.c out of
compiler-rt rather than trying to link against libsa (for now).
-Wno-missing-prototypes is necessary to compile ashldi3.c standalone.

Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D21291
This commit is contained in:
Kyle Evans 2019-08-16 20:07:43 +00:00
parent 3a60f3dad0
commit 37ac567ea7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351135

View File

@ -78,7 +78,12 @@ boot2.ldr:
boot2.bin: boot2.out
${OBJCOPY} -S -O binary boot2.out ${.TARGET}
boot2.out: ${BTXCRT} boot2.o sio.o
# For __ashldi3
.PATH: ${SRCTOP}/contrib/compiler-rt/lib/builtins
CFLAGS.ashldi3.c= -Wno-missing-prototypes
CLEANFILES+= ashldi3.o
boot2.out: ${BTXCRT} boot2.o sio.o ashldi3.o
${LD} ${LD_FLAGS} -Ttext ${ORG2} -o ${.TARGET} ${.ALLSRC}
SRCS= boot2.c boot2.h