I have a Makefile.am
with two noinst_LIBRARIES
, and one of them needs to link with the other.
Adding it to the CFLAGS
throws a compiler warning, but as far as I know, automake likes to freak out about using LDADD
with libraries, since they are not complete programs.
How can I do this, assuming libb.a
needs to pull in liba.a
?
liba.a
uses symbols fromlibb.a
then when including the libraries in your binary you must be careful about the order in which you pass them. Which means that circular dependencies are not allowed. – Iharob Al Asimi-lA -lB -lA
– nos