diff options
author | ru <ru@FreeBSD.org> | 2004-02-13 13:21:41 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-02-13 13:21:41 +0000 |
commit | 326680c1492004585de0fab05ad78cb474e6f539 (patch) | |
tree | e80e9a9d0c7ccad90f0ccf2e0465f65928dc72de /sys/conf/kern.post.mk | |
parent | 0d967b09d6e708e23c614aeeb9953e5512e8f239 (diff) | |
download | FreeBSD-src-326680c1492004585de0fab05ad78cb474e6f539.zip FreeBSD-src-326680c1492004585de0fab05ad78cb474e6f539.tar.gz |
Merged from kmod.mk,v 1.152: strip debugging symbols even when not
configured for debugging. This saves some bytes, and produces the
same "kernel" object as if it was configured for debugging.
Diffstat (limited to 'sys/conf/kern.post.mk')
-rw-r--r-- | sys/conf/kern.post.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index efd4e9c..3c71dcc 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -71,6 +71,9 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o @rm -f ${.TARGET} @echo linking ${.TARGET} ${SYSTEM_LD} +.if !defined(DEBUG) + ${OBJCOPY} --strip-debug ${.TARGET} +.endif ${SYSTEM_LD_TAIL} .if !exists(${.OBJDIR}/.depend) |