Mailinglist Archive: opensuse-buildservice (189 mails)

< Previous Next >
Re: [opensuse-buildservice] brp-check-la error
  • From: Manvendra Bhangui <mbhangui@xxxxxxxxx>
  • Date: Thu, 19 Feb 2009 20:20:17 +0530
  • Message-id: <95c27c8c0902190650u524f60d6n49e4b1ba5dfc6d67@xxxxxxxxxxxxxx>
2009/2/19 Stanislav Brabec <sbrabec@xxxxxxx>:
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >