Removed -g from CFLAGS. There is a better way to build debugging
versions of the modules, and unconditionally putting -g in CFLAGS has negative impact on the size of the resulting .ko object, even now that debugging symbols are always stripped.
This commit is contained in:
parent
4c293d355f
commit
9673a2c2d0
@ -7,8 +7,7 @@
|
||||
KMOD= if_fatm
|
||||
SRCS= if_fatm.c device_if.h bus_if.h pci_if.h opt_inet.h opt_natm.h
|
||||
|
||||
# CFLAGS+= -DFATM_DEBUG=0 -DINVARIANT_SUPPORT -DINVARIANTS -g
|
||||
# LDFLAGS+= -g
|
||||
# CFLAGS+= -DFATM_DEBUG=0 -DINVARIANT_SUPPORT -DINVARIANTS
|
||||
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
|
@ -1,4 +1,3 @@
|
||||
# $FreeBSD$
|
||||
|
||||
#CFLAGS+=-g
|
||||
.include "../Makefile.inc"
|
||||
|
@ -11,6 +11,5 @@ SRCS = bus_if.h device_if.h \
|
||||
firewire.h firewirereg.h \
|
||||
iec13213.h
|
||||
|
||||
#CFLAGS += -g
|
||||
.include <bsd.kmod.mk>
|
||||
|
||||
|
@ -8,7 +8,6 @@ KMOD= if_harp
|
||||
SRCS= if_harp.c device_if.h
|
||||
|
||||
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../include
|
||||
CFLAGS+= -DDEBUG -DINVARIANTS -g
|
||||
LDFLAGS+= -g
|
||||
CFLAGS+= -DDEBUG -DINVARIANTS
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -9,8 +9,7 @@ SRCS= if_hatm.c if_hatm_intr.c if_hatm_ioctl.c if_hatm_tx.c if_hatm_rx.c \
|
||||
device_if.h bus_if.h pci_if.h opt_inet.h opt_natm.h
|
||||
|
||||
CFLAGS+= -DENABLE_BPF
|
||||
# CFLAGS+= -DHATM_DEBUG -DINVARIANT_SUPPORT -DINVARIANTS -g
|
||||
# LDFLAGS+= -g
|
||||
# CFLAGS+= -DHATM_DEBUG -DINVARIANT_SUPPORT -DINVARIANTS
|
||||
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
|
@ -12,6 +12,6 @@ SRCS+= if_lnc_isa.c
|
||||
SRCS+= opt_inet.h device_if.h bus_if.h isa_if.h pci_if.h
|
||||
#SRCS+= miibus_if.h
|
||||
|
||||
CFLAGS+= -g -I${.CURDIR}/../../dev/lnc
|
||||
CFLAGS+= -I${.CURDIR}/../../dev/lnc
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -10,8 +10,6 @@ SRCS= osf1_ioctl.c osf1_misc.c osf1_signal.c osf1_sysent.c \
|
||||
opt_ddb.h opt_mac.h opt_nfs.h device_if.h bus_if.h \
|
||||
vnode_if.h
|
||||
|
||||
#CFLAGS+= -g
|
||||
|
||||
opt_compat.h:
|
||||
echo "#define COMPAT_43 1" > ${.TARGET}
|
||||
|
||||
|
@ -10,8 +10,7 @@ SRCS= if_patm.c if_patm_attach.c if_patm_ioctl.c if_patm_intr.c \
|
||||
device_if.h bus_if.h pci_if.h opt_inet.h opt_natm.h
|
||||
|
||||
CFLAGS+= -DENABLE_BPF
|
||||
# CFLAGS+= -DPATM_DEBUG=0x0 -DINVARIANT_SUPPORT -DINVARIANTS -g -DDIAGNOSTIC
|
||||
# LDFLAGS+= -g
|
||||
# CFLAGS+= -DPATM_DEBUG=0x0 -DINVARIANT_SUPPORT -DINVARIANTS -DDIAGNOSTIC
|
||||
|
||||
opt_inet.h:
|
||||
echo "#define INET 1" > opt_inet.h
|
||||
|
@ -7,6 +7,6 @@ MAINTAINER= takawata@FreeBSD.org
|
||||
KMOD= pecoff
|
||||
SRCS= imgact_pecoff.c opt_pecoff.h vnode_if.h
|
||||
|
||||
CFLAGS+= -g -DDEBUG
|
||||
CFLAGS+= -DDEBUG
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -7,6 +7,4 @@ MAINTAINER= n_hibma@freebsd.org
|
||||
KMOD= uscanner
|
||||
SRCS= bus_if.h device_if.h vnode_if.h opt_usb.h uscanner.c
|
||||
|
||||
CFLAGS+= -g
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user