[arch-dev-public] Default DEBUG_CFLAGS/CXXFLAGS provided with pacman 4.1

Laurent Carlier lordheavym at gmail.com
Sun Mar 31 13:42:52 EDT 2013


Le lundi 1 avril 2013 00:27:11 Allan McRae a écrit :
> On 01/04/13 00:13, Ionut Biru wrote:
> > On 03/31/2013 05:08 PM, Allan McRae wrote:
> >> On 27/03/13 12:49, Allan McRae wrote:
> >>> On 27/03/13 12:22, Jan Alexander Steffens wrote:
> >>>> With pacman 4.1 just around the corner, we'll be getting support for
> >>>> split debug information soon.
> >>>> 
> >>>> I would like to recommend "-gdwarf-4 -fvar-tracking-assignments" as
> >>>> our default debug flags in makepkg.conf. These flags should allow for
> >>>> better debug information in the presence of optimization (less <value
> >>>> optimized out>; see man gcc).
> >>> 
> >>> This is probably a better reference than the man page:
> >>> http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html
> >>> 
> >>>> Thoughts?
> >>> 
> >>> Note with gcc-4.8:
> >>> 
> >>> DWARF4 is now the default when generating DWARF debug information. When
> >>> -g is used on a platform that uses DWARF debugging information, GCC will
> >>> now default to -gdwarf-4 -fno-debug-types-section.
> >> 
> >> Any comments?  You have ~12 hours...
> >> 
> >> I will use "-g -fvar-tracking-assignments" if no-one comments otherwise.
> >> 
> >> Allan
> > 
> > +1
> > 
> > Maybe this is a good opportunity to talk about debug packages in general.
> > Do we enable for all our packages?
> > Are we adding them into extra directly or are we creating a special
> > repository like [debug] ?
> 
> I will add a glibc-debug package so I can get rid of all the custom
> stripping and just have that as a dep for gcc/valgrind.  I have no
> intention of adding debug packages for anything else (unless it becomes
> a distro policy to include them).
> 
> Allan

glibc is mandatory. I have a valgrind-multilib package in aur for the multilib 
one

-- 
Laurent Carlier
ArchLinux Trusted User
http://www.archlinux.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.archlinux.org/pipermail/arch-dev-public/attachments/20130331/428971e5/attachment.asc>


More information about the arch-dev-public mailing list