bug-automake
[Top][All Lists]
Advanced

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

convenience library dependencies (was: 1.11 doesn't add sources with non


From: Ralf Wildenhues
Subject: convenience library dependencies (was: 1.11 doesn't add sources with nonstandard suffixes when making a binary)
Date: Tue, 1 Dec 2009 19:31:00 +0100
User-agent: Mutt/1.5.20 (2009-08-09)

* Юрий Пухальский wrote on Mon, Nov 30, 2009 at 10:39:27PM CET:
> 2009/12/1 Ralf Wildenhues <address@hidden>:
> > * Юрий Пухальский wrote on Mon, Nov 30, 2009 at 09:15:23AM CET:
> >> I've tried using oldstyle libraries, to no avail... It has made a
> >> library like this (last lines of "ar t" output):
> >> foo.o
> >> libbar.a
> >
> > I don't follow the conversation, but the output looks bogus; so:
> > can you please submit a small example Makefile.am that shows the
> > problem?
>
> I've tried to use the library as i would have done with LTLIBRARIES,
> but apparently it doesn't support it (and from what i remember it
> didn't)
> Here's a small example from scratch.

Thanks.  This is the relevant part:

> --- Makefile.am ---
> noinst_LIBRARIES=libfoo.a libbar.a
> 
> libfoo_a_SOURCES=foo.c
> 
> libbar_a_SOURCES=bar.c
> libbar_a_LIBADD=libfoo.a

That doesn't work.  You can use LIBADD only with libtool libraries.
It should work with libtool convenience archives (noinst_LTLIBRARIES),
however (in case you use libtool):

  noinst_LTLIBRARIES=libfoo.la libbar.la
  libfoo_la_SOURCES=foo.c
  libbar_la_SOURCES=bar.c
  libbar_la_LIBADD=libfoo.la

Cheers,
Ralf




reply via email to

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