bjam - no strip option

View: New views
8 Messages — Rating Filter:   Alert me  

bjam - no strip option

by Anant Rao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

If I build a release version on linux using gcc, the symbols are all stripped out because it uses the ‘--strip-all’ linker option.

Is there a way to disable this option? If so, how to do it?

 

Thanks a lot,

Anant


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: bjam - no strip option

by Anthony Foglia-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Anant Rao wrote:
> If I build a release version on linux using gcc, the symbols are all stripped out because it uses the '--strip-all' linker option.
> Is there a way to disable this option? If so, how to do it?

Try setting the debug-symbol feature to on.  So in your Jamroot:

project
    : requirements
          <debug-symbols>on
    ;

--
Anthony Foglia
Princeton Consultants
(609) 987-8787 x233

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: bjam - no strip option

by Vladimir Prus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 22 October 2009 Anthony Foglia wrote:

> Anant Rao wrote:
> > If I build a release version on linux using gcc, the symbols are all stripped out because it uses the '--strip-all' linker option.
> > Is there a way to disable this option? If so, how to do it?
>
> Try setting the debug-symbol feature to on.  So in your Jamroot:
>
> project
>     : requirements
>           <debug-symbols>on
>     ;

That will actually add a pile of debug information. It probably is a better idea
to avoid --strip-all, since it's rarely done by other projects, even in release
configuration. Comments?

- Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: bjam - no strip option

by Deane Yang-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Vladimir Prus <ghost <at> cs.msu.su> writes:

>
>  It probably is a better idea
> to avoid --strip-all, since it's rarely done by other projects, even in release
> configuration. Comments?
>

I am just encountering this issue. Does Boost Build v2 have an existing means
for turning "strip symbols" on or off? If not, could this be added?





_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: bjam - no strip option

by Rene Rivera-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Deane Yang wrote:
> Vladimir Prus <ghost <at> cs.msu.su> writes:
>
>>  It probably is a better idea
>> to avoid --strip-all, since it's rarely done by other projects, even in release
>> configuration. Comments?
>>
>
> I am just encountering this issue. Does Boost Build v2 have an existing means
> for turning "strip symbols" on or off? If not, could this be added?

Do you mean something other than <debug-symbols>off vs. <debug-symbols>on?


--
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org (msn) - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: bjam - no strip option

by Vladimir Prus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 11 November 2009 Rene Rivera wrote:

> Deane Yang wrote:
> > Vladimir Prus <ghost <at> cs.msu.su> writes:
> >
> >>  It probably is a better idea
> >> to avoid --strip-all, since it's rarely done by other projects, even in release
> >> configuration. Comments?
> >>
> >
> > I am just encountering this issue. Does Boost Build v2 have an existing means
> > for turning "strip symbols" on or off? If not, could this be added?
>
> Do you mean something other than <debug-symbols>off vs. <debug-symbols>on?

I guess so. Note that other build system do not do complete strip in release configuration.
It's probably right, as it allows to get at least minimally useful backtraces.
So, I would propose to:

- don't strip by default
- [possibly] introduce a feature to request stripping

What do you think?

- Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: bjam - no strip option

by Deane Yang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Vladimir Prus wrote:

> So, I would propose to:
>
> - don't strip by default
> - [possibly] introduce a feature to request stripping
>
> What do you think?
>

I support this 100%.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

Re: bjam - no strip option

by Juergen Hunold-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI Volodya,

On Wednesday 11 November 2009, you wrote:
> So, I would propose to:
>
> - don't strip by default
> - [possibly] introduce a feature to request stripping
>
> What do you think?

+10 from my side, too.

Yours,

Jürgen
--
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold@...        ! www.ivembh.de
*
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build