automake
[Top][All Lists]
Advanced

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

linking dlopenable modules together


From: Dale E Martin
Subject: linking dlopenable modules together
Date: Thu, 19 Feb 2004 15:37:08 -0500
User-agent: Mutt/1.5.4i

I've got an automake/libtool build system.  I'm building two modules,
Foo.la and Bar.la.  I need to be able to dlopen them both in separate
systems.  Foo.la has a dependency on Bar.la, and I'd like to link them
together so I do:
Foo_la_LIBADD = $(top_builddir)/Bar.la

This appears to work OK when I do a "make", but when I do a "make install"
I get:
/usr/bin/ld: cannot find -lBar
collect2: ld returned 1 exit status
libtool: install: error: relink `Foo.la' with the above command before 
installing it

Any ideas?  I suppose I could make a convenience library that they both
depend on, is this the only way?

Thanks,
        Dale
-- 
Dale E. Martin, Clifton Labs, Inc.
Senior Computer Engineer
address@hidden
http://www.cliftonlabs.com
pgp key available




reply via email to

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