kernel: Add bitcode support.
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
PROG= kernel
|
||||
BINDIR= /usr/sbin
|
||||
MAN=
|
||||
USE_BITCODE= no
|
||||
|
||||
.include "arch/${MACHINE_ARCH}/Makefile.inc"
|
||||
|
||||
@@ -77,4 +76,16 @@ extracted-mtype.h: extract-mtype.sh ../include/minix/com.h
|
||||
${_MKTARGET_CREATE}
|
||||
cd ${.CURDIR} ; ${HOST_SH} extract-mtype.sh > ${.OBJDIR}/extracted-mtype.h
|
||||
|
||||
.if ${USE_BITCODE:Uno} == "yes"
|
||||
kernel: kernel.bcl.o
|
||||
${_MKTARGET_LINK}
|
||||
${_CCLINK.kernel} \
|
||||
${_LDFLAGS.kernel} \
|
||||
-L${DESTDIR}/usr/lib \
|
||||
${_LDSTATIC.kernel} -o ${.TARGET} \
|
||||
${.TARGET}.bcl.o ${OBJS} ${_PROGLDOPTS} ${_LDADD.kernel} \
|
||||
${BITCODE_LD_FLAGS_2ND.kernel} \
|
||||
-Wl,--allow-multiple-definition
|
||||
.endif
|
||||
|
||||
.include <minix.service.mk>
|
||||
|
||||
Reference in New Issue
Block a user