diff options
author | 2004-11-16 20:42:02 +0000 | |
---|---|---|
committer | 2004-11-16 20:42:02 +0000 | |
commit | 8731d29542a2d1a51482e8e70112915c55cddf7b (patch) | |
tree | f55a260937bd9b0feccd7484892c123ac56eaf5b | |
parent | add Joris Vink as an author (diff) | |
download | wireguard-openbsd-8731d29542a2d1a51482e8e70112915c55cddf7b.tar.xz wireguard-openbsd-8731d29542a2d1a51482e8e70112915c55cddf7b.zip |
Strip kernels compiled with DEBUG=-g leaving an unstripped kernel as bsd.gdb.
ok miod@
-rw-r--r-- | sys/arch/sgi/conf/Makefile.sgi | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/sgi/conf/Makefile.sgi b/sys/arch/sgi/conf/Makefile.sgi index 69575e42619..d657843e33b 100644 --- a/sys/arch/sgi/conf/Makefile.sgi +++ b/sys/arch/sgi/conf/Makefile.sgi @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sgi,v 1.9 2004/10/20 12:49:15 pefo Exp $ +# $OpenBSD: Makefile.sgi,v 1.10 2004/11/16 20:42:02 kettenis Exp $ # Makefile for OpenBSD # @@ -58,6 +58,7 @@ COPTS?= -O2 CFLAGS= ${DEBUG} ${CDIAGFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} AFLAGS= -x assembler-with-cpp -traditional-cpp \ -mno-abicalls ${ABI} -D_LOCORE +STRIPFLAGS= -g -X -x ### find out what to use for libkern .include "$S/lib/libkern/Makefile.inc" @@ -109,6 +110,13 @@ SYSTEM_LD= -@if [ X${DEBUG} = X-g ]; \ SYSTEM_LD_TAIL= chmod 755 $@; \ ${SIZE} $@ +DEBUG?= +.if ${DEBUG} == "-g" +SYSTEM_LD_TAIL+=; \ + echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ + echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@ +.endif + %LOAD newvers: |