Boost logo

Boost-Build :

Subject: Re: [Boost-build] Getting -rdynamic to work
From: Sean Hunt (rideau3_at_[hidden])
Date: 2008-10-12 12:52:19


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.

I think it has to do with command-line order of options, and I would
appreciate if someone can help me with this!


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