help-gplusplus
[Top][All Lists]
Advanced

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

Re: How to make shared library from static one


From: Robert Heller
Subject: Re: How to make shared library from static one
Date: Tue, 22 Nov 2005 17:31:40 +0100

  "shima" <shima@wp.pl>,
  In a message on 22 Nov 2005 07:44:29 -0800, wrote :

"> I need static library because of debugging requirement. But I also need
"> shared library. How can I link/wrap static library into shared library
"> in order to have debugging info?

There are a pile of reasons not to just 'wrap' a static library into a
shared one, not the least of which is the issues of Position Independent
Code (PIC).  libtool will automagically build both libraries (shared and
static) with all of the proper flags (eg -fPIC and -DPIC). And do it in
a platform independent way (or actually it will take care of figuring
out what to do on whatever platform you are running on).

info libtool
info automake


"> 
"> BR 
"> Shima
"> 
">                                               

                                     \/
Robert Heller                        ||InterNet:   heller@deepsoft.com
http://www.deepsoft.com/             ||FidoNet:    1:321/153            
http://www.deepsoft.com/~heller      /\






              


reply via email to

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