[Buildroot] [Bug 949] New: compile with debug info

bugzilla at busybox.net bugzilla at busybox.net
Sat Jan 23 10:21:57 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=949

           Summary: compile with debug info
           Product: buildroot
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P4
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: yasser_kashfi at yahoo.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


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


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the buildroot mailing list