aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2020-04-18 12:54:35 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2020-04-18 12:54:35 +0000
commita8976aec4535acfb77e68e5b6551348dd68812d6 (patch)
tree6b2b2406ca3487c78ac63805c4e5f73c456d650f /sys
parent6f80a2c88e280bfa1d54c2b9151639b48d62be69 (diff)
downloadsrc-a8976aec4535acfb77e68e5b6551348dd68812d6.tar.gz
src-a8976aec4535acfb77e68e5b6551348dd68812d6.zip
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
Notes
Notes: svn path=/head/; revision=360071
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/kmod.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index e5c72030838e..d1f98ef51cf8 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -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}