Re: automake and shared libraries

2003-07-29 Thread Alexandre Duret-Lutz
>>> "Andrew" == Andrew Suffield <[EMAIL PROTECTED]> writes: [...] Andrew> Actually, this might be hackable by stuffing -fPIC in the Andrew> relevant CFLAGS variable - then the warning is spurious. As explained in earlier mails, the problem disappears as soon as you use per-target flags such as

Re: automake and shared libraries

2003-07-29 Thread Philip Graham Willoughby
On 2003-07-29 17:52:32 +, Andrew Suffield wrote: > On Tue, Jul 29, 2003 at 02:34:14PM +0200, Mattias Br?ndstr?m wrote: > >librkcone_LDADD = common/libcommon.a > > > > is for some reason not a portable thing to do? > > A static or convenience library is usually built without -fPIC, so > it

Re: automake and shared libraries

2003-07-29 Thread Andrew Suffield
On Tue, Jul 29, 2003 at 02:34:14PM +0200, Mattias Br?ndstr?m wrote: > On Tue, 29 Jul 2003, Alexandre Duret-Lutz wrote: > > > On Tue, Jul 29, 2003 at 01:16:53PM +0200, Mattias Br?ndstr?m wrote: > > [...] > > > automake: src/rkcone/common/Makefile.am: object `Exception.lo' created > > > both with li

Re: automake and shared libraries

2003-07-29 Thread Mattias Brändström
On Tue, 29 Jul 2003, Alexandre Duret-Lutz wrote: > On Tue, Jul 29, 2003 at 01:16:53PM +0200, Mattias Br?ndstr?m wrote: > [...] > > automake: src/rkcone/common/Makefile.am: object `Exception.lo' created > > both with libtool and without > [...] > > I suspect there is an obvious solution to this tha

Re: automake and shared libraries

2003-07-29 Thread Alexandre Duret-Lutz
On Tue, Jul 29, 2003 at 01:16:53PM +0200, Mattias Br?ndstr?m wrote: [...] > automake: src/rkcone/common/Makefile.am: object `Exception.lo' created > both with libtool and without [...] > I suspect there is an obvious solution to this that I am missing. Can > someone set a library building newbie on

Re: automake and shared libraries

2003-07-29 Thread Mattias Brändström
On Tue, 29 Jul 2003, Alexandre Duret-Lutz wrote: > Let Libtool build the intermediary libraries. > http://sources.redhat.com/ml/automake/2003-07/msg00064.html > OK, that clears things up a bit. I tried to do it the way that you suggested but I run into some problems. This is one of my Makefile.am

Re: automake and shared libraries

2003-07-29 Thread Alexandre Duret-Lutz
On Tue, Jul 29, 2003 at 10:45:18AM +0200, Mattias Br?ndstr?m wrote: > lib_LTLIBRARIES = libproject.la > librkcone_la_LIBADD = foo/libfoo.a > > When I do it like these I get a warning during the build process saying: > > *** Warning: Linking the shared library libproject.la against the > *** static