diff options
author | ru <ru@FreeBSD.org> | 2004-02-13 09:39:45 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-02-13 09:39:45 +0000 |
commit | a586f5606a0da2a4de47a2122bd3867f83a3dae0 (patch) | |
tree | d8d3db4f9be02590a7856b0859cfe1324e6b68ce /sys/conf | |
parent | 4d05d5efa5a1a342d36687c078e941d62e5f1726 (diff) | |
download | FreeBSD-src-a586f5606a0da2a4de47a2122bd3867f83a3dae0.zip FreeBSD-src-a586f5606a0da2a4de47a2122bd3867f83a3dae0.tar.gz |
We didn't strip debugging symbols from .ko if DEBUG was undefined.
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/kmod.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 65f56f5..d6de871 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -127,6 +127,9 @@ ${PROG}: ${FULLPROG} ${FULLPROG}: ${KMOD}.kld ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${KMOD}.kld +.if !defined(DEBUG) + ${OBJCOPY} --strip-debug ${FULLPROG} +.endif EXPORT_SYMS?= NO .if ${EXPORT_SYMS} != YES |