Bug 949 - compile with debug info
Summary: compile with debug info
Status: RESOLVED WORKSFORME
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: P4 normal
Target Milestone: 2010.05
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-23 10:21 UTC by Yasser Kashfi
Modified: 2010-07-18 21:30 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!