[arch-general] Howto compile in debugging symbols with makepks so I can use gdb?

Jan de Groot jan at jgc.homeip.net
Wed Nov 11 10:17:21 EST 2009


On Wed, 2009-11-11 at 09:00 -0600, David C. Rankin wrote:
> Guys,
> 
> Still chasing the keepassx problem. There are no debugging symbols in the 
> package so I used ABS to build from source, but of course there is no 
> debugging there either. What's the trick to compile so I can get a meaningful 
> gdb backtrace?
> 

in the PKGBUILD:
options=(!strip)

in the build() function on top:
export CFLAGS="-g"
export CXXFLAGS="-g"

That should compile with default optimizations and includes debug
symbols, which shouldn't get stripped before packing the package
together.



More information about the arch-general mailing list