[klibc] [PATCH] make DEBUG=true

Olaf Hering olh at suse.de
Thu Feb 10 11:42:32 PST 2005


udev knows about DEBUG=true and builds a debug binary. Maybe klibc
should do the same?
Was there a reason for -g in the i386 MCONFIG?

Index: MCONFIG
===================================================================
--- MCONFIG	(revision 1003)
+++ MCONFIG	(working copy)
@@ -62,5 +62,11 @@
 #
 include $(KLIBSRC)/arch/$(ARCH)/MCONFIG
 
+ifeq ($(DEBUG),true)
+STRIP	= /bin/true -Since_we_are_debugging
+OPTFLAGS	+= -O1 -g
+endif
+
+
 # How to tell the linker main() is the entrypoint
 EMAIN ?= -e main
Index: klibc/arch/i386/MCONFIG
===================================================================
--- klibc/arch/i386/MCONFIG	(revision 1003)
+++ klibc/arch/i386/MCONFIG	(working copy)
@@ -13,7 +13,7 @@
 
 gcc_major := $(shell echo __GNUC__ | $(CC) -E -xc - | tail -n 1)
 
-OPTFLAGS = $(REGPARM) -march=i386 -Os -g
+OPTFLAGS = $(REGPARM) -march=i386 -Os
 
 ifeq ($(gcc_major),3)
 REGPARM  := $(REGPARM_OPT)



More information about the klibc mailing list