ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] shared-linkable-true, runtime-link-dynamic and runtime-link-static
by David Abrahams other posts by this author
Oct 16 2002 1:14PM messages near this date
Re: [boost] shared-linkable-true, runtime-link-dynamic and runtime-link-static | Re: [boost] shared-linkable-true, runtime-link-dynamic and runtime-link-static
Alkis Evlogimenos <alkis@[...].com>  writes:

>  On Tuesday 15 October 2002 03:11 pm, David Abrahams wrote:
>  > Yes, it does. That's what -static in the g++ command-line means. You
>  > can inspect the build command lines by passing
>  >
>  >    -n -a
>  >
>  > to bjam when you invoke it. Inspecting the differences will tell you a
>  > lot.
>  
>  After some recompilations and google digging through the net let me try and 
>  see if I got this right:
>  
>  shared-linkable-true: creates targets that can be linked in a shared object 
>  (all it says is that the code generated is position independent; 

It may mean something else on non-ELF platforms, but that's the right
idea.

>  if that goes 
>  to a static/shared library or a statically/dynamically linked executable is 
>  another story) (passes -fPIC to gcc)
>  
>  runtime-link-dynamic: creates targets that are dynamically linked to the C++ 
>  runtime (no additional options for gcc)
>  
>  runtime-link-static: creates targets that are statically linked to the C++ 
>  runtime (passes -static to gcc)
>  
>  If the above is correct then shouldn't runtime-link-dynamic and 
>  runtime-link-static be passing to gcc "-shared-libgcc" and "-static-libgcc" 
>  respectively? gcc's manual says that "-static" turns on preference to static 
>  libraries in general whereas "-{static,dynamic}-libgcc" only affects libgcc 
>  (isn't this the C++ Runtime?).

Well, I guess that's right.

>  Anyway, when building boost I can't seem to be able to get shared libraries 
>  for anything other than boost_regex and boost_signals. 

Boost.Python builds a shared library by default.

>  Is it a bad idea to link dynamically to boost_thread and
>  boost_date_time libraries? Or there is nothing wrong with it and all
>  I have to do is add a dll rule for each of them?

I don't know about that; I'll let the individual library authors
answer you.

-- 
           David Abrahams * Boost Consulting
dave@[...].com * http://www.boost-consulting.com

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Alkis Evlogimenos
Rene Rivera
David Abrahams
Petr Kocmid
Alkis Evlogimenos
David Abrahams
Alkis Evlogimenos
David Abrahams
Neal D. Becker
Rene Rivera
Jeff Garland

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved