$ cat lib/Makefile.am noinst_LIBRARIES = libreplace.a libreplace_a_SOURCES = libreplace_a_LIBADD = $(LIBOBJS) $ cat src/Makefile.am bin_PROGRAMS = foo LDADD = ../lib/libreplace.a
I can't do that. The project is a shared library and a set of utilities which uses it. Although it is ok to do this to the utilities, I'll have portability problems if I link a static library to my shared library.
In the meantime, I found the PR 401, which states this problem:
http://sources.redhat.com/ml/automake-prs/2003-q3/msg00029.html
I think the idea of having each filename of LIBOBJS prefixed with ${LIBOBJ_DIR}, and let LIBOBJ_DIR be defined differently in each Makefile is the better solution.
Is there some planning to fix this bug? I hate asking this, but it is the only thing I'm missing for the next release of my library.
Thanks for any help.
-- Juliano Ravasi Ferraz <[EMAIL PROTECTED]>
What if there were no hypothetical situations?