bug#30169: Libtool doesn't build correctly with multiple check library dependencies

Mathieu Lirzin <[email protected]>
Newsgroups gmane.comp.gnu.libtool.bugs
Message-ID <[email protected]>
Hello,

Michael Cress <[email protected]> writes:

> I am getting a “make check” linking error ( e.g. ./.libs/library.so:
> undefined reference to ‘function implemented in another library within
> the same makefile). Libtool builds everything just fine using bin_,
> but when copying and pasting the _CFLAGS, _LDADD, etc., renaming to
> check_ and rebuilding via make check, I get the error.
>
> Note: the referenced libraries are all Libtool .la libraries generated
> within a large project Makefile. Again, all libraries are building and
> executing just fine. The only issue is when I attempt to use make
> check.
>
> Finally, if I comment out the unit test code (leaving essentially a
> bare bones empty unit test) and remove the LDADD references to the
> Libtool intermediate libraries and make check works fine (it builds,
> runs, and shows the Pass/Fail report).
>
> I have done everything I can think of to make this work but I have gotten nowhere. So, I’m guessing this is a bug somewhere.

In order to help you, It works better if you show us code. :-)

Ideally you would provide a minimal example to let others reproduce the
bug.  You can use “${prefix}/share/doc/automake/amhello-1.0.tar.gz”
example as a basis and add what doesn't work for you.

Thanks.

-- 
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37



_______________________________________________
Bug-libtool mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-libtool
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.