Bug 949

Summary: compile with debug info
Product: buildroot Reporter: Yasser Kashfi <yasser_kashfi>
Component: OtherAssignee: unassigned
Status: RESOLVED WORKSFORME    
Severity: normal CC: buildroot, yasser_kashfi
Priority: P4    
Version: unspecified   
Target Milestone: 2010.05   
Hardware: All   
OS: All   
Host: Target:
Build:

Description Yasser Kashfi 2010-01-23 10:21:56 UTC
if user dos not select 'build with debug info' the default compile flag is set to -g. however this is wrong. in this case compile flag (cflags & cxxflags) must be set to -g0. I solved this problem by patch the fallowing file:
package/Makefile.in:
+ifneq ($(BR2_ENABLE_DEBUG),y)
+TARGET_DEBUGGING=-g0
+endif
ifeq ($(BR2_DEBUG_1),y)
TARGET_DEBUGGING=-g1
endif
...

best regards
Comment 1 Thomas Petazzoni 2010-07-18 21:30:01 UTC
I'm sorry but here, I don't see any -g option being added when "build with debug info" is disabled.

I'm therefore marking the bug as "works for me", but if you have a specific example illustrating the problem, do not hesitate to reopen the bug and to provide more details.

Thanks!