2009/2/19 Stanislav Brabec <sbrabec@suse.cz>:
Bad use of libtool: -L should refer to system wide library. If you want to refer to uninstalled library, you have to specify a part to .la file without -L or -l.
Possible fix: libindimail_la_LIBADD = cdb/*.o @LIB_CRYPT@ $(top_builddir)/eps-1.2/libeps.la -L@mysql_libdir@ -lmysqlclient -lm
Well, cdb/*.o is incorrect as well. It should be specified in libindimail_la_SOURCES or you can create a temporary libtool library using noinst_LTLIBRARIES and then refer to its .la file.
Note that if cdb objects are not built yet it may expands to empty string => You may have problems and you probably will have problems with parallel build.
Then it may look: libindimail_la_SOURCES = .... cdb/... libindimail_la_LIBADD = @LIB_CRYPT@ $(top_builddir)/eps-1.2/libeps.la -L@mysql_libdir@ -lmysqlclient -lm or libindimail_la_LIBADD = $(top_builddir)/cdb/libcdb.la @LIB_CRYPT@ $(top_builddir)/eps-1.2/libeps.la -L@mysql_libdir@ -lmysqlclient -lm and in another cdb/Makefile.am noinst_LTLIBRARIES = libcdb.la libcdb_la_SOURCES = ...
(listing them explicitly is better than $(top_srcdir)/cdb/*.c)
Thanks a ton. I have finally understood the problem. Appreciate the time you took to explain this. Regards Manvendra -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org