help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debuging a library


From: Chris Croughton
Subject: Re: Debuging a library
Date: Sat, 14 May 2005 09:42:19 +0100
User-agent: slrn/0.9.7.4 (Linux)

On 13 May 2005 17:19:50 -0700, biloti@gmail.com 
   <biloti@gmail.com> wrote:

> I've been developing a mathematical library (Open Optimization Library
> - OOL, ool.sourceforge.net) and I employ the GNU tools
> autoconf/automake.

Using libtool or ar?

> The usual is that the library generated is compiled with optimization
> flags and then stripped. To test the library I use a simple program
> that obviously is linked with it. I would like to run DDD on this main
> program but, since the library file is stripped, I cant trace the
> execution into the library's functions.

When is it stripped?  My ones are only stripped when installed (using
"make install-strip"), so my test programs link with the 'local' version
just generated.  However, I use ar rather than libtool, this may be a
difference.

> Is there a way to generate the library file (libool.la) without any
> optimization flag and unstripped?

It sounds as though you need a way to change the build flags so they are
different between 'production' and 'development' versions.  How about
using one of the --with or --enable options to configure to select the
CFLAGS?

Chris C


reply via email to

[Prev in Thread] Current Thread [Next in Thread]