bug-libtool
[Top][All Lists]
Advanced

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

Re: shared lib requires main ?!


From: Ralf Wildenhues
Subject: Re: shared lib requires main ?!
Date: Sun, 2 Nov 2008 12:11:29 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hello Gabriel,

* salsaman wrote on Sat, Nov 01, 2008 at 09:30:01PM CET:
> I think found a bug in libtool: I am building a shared lib and it is giving
> an error that main is missing:
> 
> :~/lives/lives-plugins/plugins/playback/video$ ../../../../libtool
> --tag=CC   --mode=link gcc -g -shared -o lives2lives_stream.so
> lives2lives_stream-lives2lives_stream.o

Libtool libraries have a .la suffix, which is an abstraction for
libraries; the real libraries may end in .so or some other,
system-specific suffix.  Also, there is no need to explicitly pass
-shared.  Please try

  ../../../../libtool --tag=CC   --mode=link gcc -g \
    -o lives2lives_stream.la lives2lives_stream-lives2lives_stream.lo \
    -rpath $(libdir)

with $(libdir) suitably replaced.  If you're using Automake, then using
something like this should work:

lib_LTLIBRARIES = lives2lives_stream.la
lives2lives_stream_la_SOURCES = lives2lives_stream.c ...

Hope that helps.

Cheers,
Ralf




reply via email to

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