Skip to contentSkip to conversation

add a make option to not strip debugging symbols

PATCH In review Jeff Moyer 2 participants 2 messages Nov 3, 2006 – Nov 5, 2006

Subsystems (2)
lore
Share & tools
lore

Jeff Moyer

author
#0 lore raw

PATCH 1/1 add a make option to not strip debugging symbols

Hi, Ian, list,

This patch was posed for v5 and was taken in. We should do something similar for v4. Guillaume noted that the build process is somewhat unorthodox, so perhaps we should fix it "the right way." However, I lack the cycles at the moment.

-Jeff

Makefile.rules +7 -1
index 99393f6..82ded1f 100644
@@ -22,10 +22,16 @@ CFLAGS    = -O2 -g -DDEBUG
 LDFLAGS   = -g
 STRIP     = :
 else
+ifdef DONTSTRIP
+CFLAGS    = -O2 -g
+LDFLAGS   = -g
+STRIP     = :
+else # normal compile
 CFLAGS    = -O3 -fomit-frame-pointer -Wall
 LDFLAGS   = -s
 STRIP     = strip --strip-debug
-endif
+endif # DONTSTRIP
+endif # DEBUG
 
 CC        = gcc
 CXX       = g++
#1 lore raw
Quoted 6 lines · Jeff Moyer

Hi, Ian, list,

This patch was posed for v5 and was taken in. We should do something similar for v4. Guillaume noted that the build process is somewhat unorthodox, so perhaps we should fix it "the right way." However, I lack the cycles at the moment.

My own proposal of providing initial automake templates is still valid.