kmod.mk (15fe2513996eaa8857fcf66a632814b5f9374b03) | kmod.mk (8eb1a0ce5654fe5109e2edb0a90ecb09f29c5a28) |
---|---|
1# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 2# $FreeBSD$ 3# 4# The include file <bsd.kmod.mk> handles building and installing loadable 5# kernel modules. 6# 7# 8# +++ variables +++ --- 119 unchanged lines hidden (view full) --- 128 129CFLAGS.gcc+= -finline-limit=${INLINE_LIMIT} 130CFLAGS.gcc+= -fms-extensions 131CFLAGS.gcc+= --param inline-unit-growth=100 132CFLAGS.gcc+= --param large-function-growth=1000 133 134# Disallow common variables, and if we end up with commons from 135# somewhere unexpected, allocate storage for them in the module itself. | 1# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 2# $FreeBSD$ 3# 4# The include file <bsd.kmod.mk> handles building and installing loadable 5# kernel modules. 6# 7# 8# +++ variables +++ --- 119 unchanged lines hidden (view full) --- 128 129CFLAGS.gcc+= -finline-limit=${INLINE_LIMIT} 130CFLAGS.gcc+= -fms-extensions 131CFLAGS.gcc+= --param inline-unit-growth=100 132CFLAGS.gcc+= --param large-function-growth=1000 133 134# Disallow common variables, and if we end up with commons from 135# somewhere unexpected, allocate storage for them in the module itself. |
136# 137# -fno-common is the default for src builds, but this should be left in place 138# until at least we catch up to GCC10/LLVM11 or otherwise enable -fno-common 139# in <bsd.sys.mk> instead. For now, we will have duplicate -fno-common in 140# CFLAGS for in-tree module builds as they will also pick it up from 141# share/mk/src.sys.mk, but the following is important for out-of-tree modules 142# (e.g. ports). |
|
136CFLAGS+= -fno-common 137LDFLAGS+= -d -warn-common 138 139.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id} 140LDFLAGS+= --build-id=sha1 141.endif 142 143CFLAGS+= ${DEBUG_FLAGS} --- 399 unchanged lines hidden --- | 143CFLAGS+= -fno-common 144LDFLAGS+= -d -warn-common 145 146.if defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mbuild-id} 147LDFLAGS+= --build-id=sha1 148.endif 149 150CFLAGS+= ${DEBUG_FLAGS} --- 399 unchanged lines hidden --- |