You are not logged in.

#1 2009-08-27 09:21:55

ranjiao
Member
Registered: 2009-08-20
Posts: 16

[solved]How to compile a software with debug symbol from aur?

How does auch developers compile their project? Seems that archlinux user always trying to avoid build software from git/svn directly. But after searching a lot  I sill haven't found how to compile with debug symbol while using PKGBUILD.

Anyone help?

Last edited by ranjiao (2009-08-27 14:28:09)

Offline

#2 2009-08-27 09:41:55

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [solved]How to compile a software with debug symbol from aur?

give configure --enable-debug and add options=(!strip)

Offline

#3 2009-08-27 10:56:01

ranjiao
Member
Registered: 2009-08-20
Posts: 16

Re: [solved]How to compile a software with debug symbol from aur?

PKGBUILD calls autogen.sh before calling make, and gnome-autogen.sh is called in autogen.sh
I have tried to add --enable-debug while calling autogen.sh and gnome-autogen.sh, but it doesn't work.

Offline

#4 2009-08-27 11:07:15

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [solved]How to compile a software with debug symbol from aur?

did you add in PKGBUILD, in options array !strip ?


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2009-08-27 11:48:57

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: [solved]How to compile a software with debug symbol from aur?

ranjiao wrote:

PKGBUILD calls autogen.sh before calling make, and gnome-autogen.sh is called in autogen.sh
I have tried to add --enable-debug while calling autogen.sh and gnome-autogen.sh, but it doesn't work.

Isn't PKGBUILD just a script? It calls what you make it calls by adding commands...


Proud ex-maintainer of firefox-pgo

Offline

#6 2009-08-27 14:27:37

ranjiao
Member
Registered: 2009-08-20
Posts: 16

Re: [solved]How to compile a software with debug symbol from aur?

Finally I find that what I was trying to debug is binary build 2 days ago...

Offline

Board footer

Powered by FluxBB