RE: how to make libtool link with static system libraries instead of dynamic

"Andy Falanga (afalanga)" <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
> -----Original Message-----
> From: Peter Johansson [mailto:[email protected]]
> Sent: Thursday, March 05, 2015 6:46 PM
> To: Andy Falanga (afalanga); [email protected]
> Subject: Re: how to make libtool link with static system libraries
> instead of dynamic
> 
> On 03/06/2015 09:24 AM, Andy Falanga (afalanga) wrote:
> > I am wondering how I would make libtool link with static versions of
> already installed libraries instead of the dynamic ones.  I have
> something like this in Makefile.am
> >
> > pyexec_LTLIBRARIES = mylib.la
> > mylib_la_LDFLAGS = -Wl,-Bstatic
> > mylib_la_LIBADD = -lz -lrt -lboost_python ....
> >
> > The problem is, all of the -l options appear before the -Wl,-Bstatic.
> This means that the dynamic libraries are linked.  How do I make this
> happen?
> 
> The -all-static option might be useful for you
> 

Thanks for the suggestion but it didn't produce what I need.  It had the
same effect as using "mylib_la_LDFLAGS = -static" which was to build only
static versions, or archives, of the python module.  This makes it so that
the python interpreter cannot use the library: it must be shared.

Thanks anyway,
Andy

_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.