[Top][All Lists]

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

pointless automake error about libtool libraries

From: Bruno Haible
Subject: pointless automake error about libtool libraries
Date: Mon, 21 Aug 2006 13:34:04 +0200
User-agent: KMail/1.9.1


I have a Makefile.am containing

line 15:   noinst_LTLIBRARIES = libgettextlib.la
line 268:  lib_LTLIBRARIES = libgettextlib.la

automake-1.9.6 gives an error on it:

gnulib-lib/Makefile.am:15: libgettextlib.la multiply defined in condition TRUE
gnulib-lib/Makefile.am:15: `libgettextlib.la' should be built for `noinst' ...
gnulib-lib/Makefile.am:268: ... and should also be installed in `lib'.
gnulib-lib/Makefile.am:268: Libtool libraries can be built for only one 
make: *** [Makefile.in] error 1

This error is unjustified: it could simply ignore the noinst_LTLIBRARIES
line. The comment in automake's source says

      # We reject libraries which are installed in several places
      # in the same condition, because we can only specify one
      # `-rpath' option.

and indeed for linking to not-installed libraries no -rpath option is needed.

You could say: remove the noinst_LTLIBRARIES line yourself! Well, this
situation occurs with gnulib-tool, which generates the noinst_LTLIBRARIES.
I would need to add an extra option to gnulib-tool, to have it omit the
noinst_LTLIBRARIES line, just to overcome this pointless automake error.


reply via email to

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