libtool
[Top][All Lists]
Advanced

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

Re: Linking problem


From: Ralf Wildenhues
Subject: Re: Linking problem
Date: Thu, 27 Oct 2005 08:54:29 +0200
User-agent: Mutt/1.5.11

Hi Nitesh,

* Nitesh Soni (NC/TNT) wrote on Wed, Oct 26, 2005 at 11:53:32PM CEST:
> 
> I am using libtool to build static and shared libraries. Now, I have
> run into the following problem.
> 
> Lets say I am building a library "libX.la". This library is a
> collection of other libraries and NO source files.  Eg.
> 
> In my Makefile.am I have something like:
> 
> libX_la_SOURCES = 
> 
> libX_la_LIBADD = libY.la
> libX_la_LIBADD += libZ.la
> 
> Now, when I build this library using libtool, I get the following output: 
> 
> libtool --tag=CC --mode=link gcc -o libX.la libY.la libZ.la
> 
> gcc -shared -o.libs/libX.so .libs/libY.so .libs/libZ.so
> 
> ar cru .libs/libX.a
> ranlib .libs/libX.a
> 
> As you can see, its building the shared library but not the static archive.

Thank you for the bug report.  I need a little more information to
reproduce it:
- What does `./libtool --version' and `./libtool --config' say?
- Are libY.la and libZ.la convenience archives or to-be-installed
  libraries?  I.e., in Automake terms, are they noinst_LTLIBRARIES
  or something else?

Cheers,
Ralf




reply via email to

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