Boost logo

Boost-Build :

Subject: Re: [Boost-build] Getting -rdynamic to work
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-10-12 13:26:07


On Sunday 12 October 2008 20:52:19 Sean Hunt wrote:
> Vladimir Prus wrote:
> > On Sunday 12 October 2008 02:25:27 Sean Hunt wrote:
> >> Hello,
> >>
> >> I'm trying to ensure that -rdynamic is passed to the compile so as to
> >> allow my program to fetch backtraces of running programs. However, it
> >> isn't seeming to have any effect. I have tried it set on <cxxflags> and
> >> <linkflags>, and both, but to no effect.
> >>
> >> Does anyone have some advice?
> >
> > Yes:
> > - Provide the exact Jamfile you're using.
> > - Provide the exact bjam command line
> >
> > - Volodya
>
> ## Setup requirements:
> ## Put the following line in your user-config.jam or site-config.jam
> ## use-project /boost : /path/to/boost/
>
> project /piet
> : requirements <toolset>gcc <cxxflags>-std=c++0x
> : default-build debug
> : build-dir build
> ;
>
> lib Magick++ ;
>
> exe piet : src/main.cpp src/program.cpp src/exceptions.cpp
> /boost/program_options Magick++
> : <linkflags>-rdynamic <cxxflags>-rdynamic ;
>
> Pretty simple. The net result is that -rdynamic doesn't seem to work, as
> the backtrace doesn't include actual sym names usually, and this symptom
> is apparently because -rdynamic doesn't get included.

Hmm,
did you run "bjam -n -a" to see if -rdynamic is actually added to the
command line? It is for me.

- Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk