kernel: Add bitcode support.

This commit is contained in:
Cristiano Giuffrida
2014-07-16 14:14:05 +02:00
committed by Lionel Sambuc
parent dea274570b
commit 8d9b87e365
2 changed files with 25 additions and 2 deletions

View File

@@ -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>