libtool
[Top][All Lists]
Advanced

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

Re: how to make libtool link with static system libraries instead of dyn


From: Peter Johansson
Subject: Re: how to make libtool link with static system libraries instead of dynamic
Date: Fri, 06 Mar 2015 11:46:25 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0

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

http://www.gnu.org/software/libtool/manual/libtool.html#Static-libraries

Cheers
Peter

--
Peter Johansson




reply via email to

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