Allow kernel modules to build with a compiler that defaults to -fno-common
This uses the same approach as r359691. Reviewed By: brooks Differential Revision: https://reviews.freebsd.org/D24405
This commit is contained in:
parent
6c0ee79b3a
commit
ba810982b4
@ -524,13 +524,13 @@ assym.inc: ${SYSDIR}/kern/genassym.sh
|
||||
sh ${SYSDIR}/kern/genassym.sh genassym.o > ${.TARGET}
|
||||
genassym.o: ${SYSDIR}/${MACHINE}/${MACHINE}/genassym.c offset.inc
|
||||
genassym.o: ${SRCS:Mopt_*.h}
|
||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} \
|
||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon \
|
||||
${SYSDIR}/${MACHINE}/${MACHINE}/genassym.c
|
||||
offset.inc: ${SYSDIR}/kern/genoffset.sh genoffset.o
|
||||
sh ${SYSDIR}/kern/genoffset.sh genoffset.o > ${.TARGET}
|
||||
genoffset.o: ${SYSDIR}/kern/genoffset.c
|
||||
genoffset.o: ${SRCS:Mopt_*.h}
|
||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} \
|
||||
${CC} -c ${CFLAGS:N-flto:N-fno-common} -fcommon \
|
||||
${SYSDIR}/kern/genoffset.c
|
||||
|
||||
CLEANDEPENDFILES+= ${_ILINKS}
|
||||
|
Loading…
Reference in New Issue
Block a user