Re: Confused by .la file removal vs static linking support
Nikita V. Youshchenko, le Sun 02 May 2010 23:54:02 +0400, a écrit :
> > > > > > Static linking is resolved by providing a foo.pc file so that
> > > > > > "pkg-config --static --libs foo" is all that's needed to find
> > > > > > the right libs.
> > > > >
> > > > > This does not clarify the question about dependences.
> > > >
> > > > It does, because foo.pc won't work without its dependencies
> > > > installed (even if you're not using --static; they're needed for
> > > > --cflags).
> > >
> > > What for?
> >
> > For #includes that your library may do for its API (e.g. gobject).
>
> But libetpan's public headers do not include any headers of those dependent
> packages, so it is not the case.
Maybe, but for some other libraries it is, he just meant it to be an
example why -dev is not only needed just for --static.
Samuel
Reply to: