Deleted Added
full compact
kmod.mk (241600) kmod.mk (253072)
1# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
1# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2# $FreeBSD: head/sys/conf/kmod.mk 241600 2012-10-16 01:10:43Z gonzo $
2# $FreeBSD: head/sys/conf/kmod.mk 253072 2013-07-09 08:42:02Z avg $
3#
4# The include file <bsd.kmod.mk> handles building and installing loadable
5# kernel modules.
6#
7#
8# +++ variables +++
9#
10# CLEANFILES Additional files to remove for the clean and cleandir targets.

--- 106 unchanged lines hidden (view full) ---

117
118# Disallow common variables, and if we end up with commons from
119# somewhere unexpected, allocate storage for them in the module itself.
120CFLAGS+= -fno-common
121LDFLAGS+= -d -warn-common
122
123CFLAGS+= ${DEBUG_FLAGS}
124.if ${MACHINE_CPUARCH} == amd64
3#
4# The include file <bsd.kmod.mk> handles building and installing loadable
5# kernel modules.
6#
7#
8# +++ variables +++
9#
10# CLEANFILES Additional files to remove for the clean and cleandir targets.

--- 106 unchanged lines hidden (view full) ---

117
118# Disallow common variables, and if we end up with commons from
119# somewhere unexpected, allocate storage for them in the module itself.
120CFLAGS+= -fno-common
121LDFLAGS+= -d -warn-common
122
123CFLAGS+= ${DEBUG_FLAGS}
124.if ${MACHINE_CPUARCH} == amd64
125CFLAGS+= -fno-omit-frame-pointer
125CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
126.endif
127
128.if ${MACHINE_CPUARCH} == powerpc
129CFLAGS+= -mlongcall -fno-omit-frame-pointer
130.endif
131
132.if ${MACHINE_CPUARCH} == mips
133CFLAGS+= -G0 -fno-pic -mno-abicalls -mlong-calls

--- 350 unchanged lines hidden ---
126.endif
127
128.if ${MACHINE_CPUARCH} == powerpc
129CFLAGS+= -mlongcall -fno-omit-frame-pointer
130.endif
131
132.if ${MACHINE_CPUARCH} == mips
133CFLAGS+= -G0 -fno-pic -mno-abicalls -mlong-calls

--- 350 unchanged lines hidden ---