Hello Jeff,

* Jeff Safier wrote on Wed, Feb 14, 2007 at 05:16:55PM CET:
> I have two libraries (from an existing Windows app) that have been
> converted to LINUX static libraries
> It seems that each library calls a function from the other library. 

Which is unclean design, but oh well.

>  I noticed that the library order in my Makefile.am needs to be
>  order dependent, meaning if a library calls another libraries functions
> the calling libray must be first in the list.  Is this neccesarily true,
> or am I doing something wrong.

This is how Unix link editors work, yes.

> Is there a way to disable the order dependency so the above scenario
> will work.

list one twice, before and after the other:
  prog_LDADD = libA.a libB.a libA.a

Hope that helps.

Cheers,
Ralf


Reply via email to