* Jeff Squyres wrote on Fri, Jun 06, 2008 at 03:21:03AM CEST:
> On Jun 4, 2008, at 5:15 PM, Ralf Wildenhues wrote:
> > 1) This is from test/Makefile.am:
> >
> > --- snip ---
> > # This should be libsupport.a, not libsupport.la.  Automake doesn't
> > # support check_LTLIBRARIES, as technically you have to install a
> > # shared library before you can use it.
> > #
> > check_LIBRARIES = libsupport.a

> > The statement in the comment is not true; Automake supports
> > check_LTLIBRARIES, and they don't have to be installed before use
> > either.  What may be confusing is that, by default, check_LTLIBRARIES
> > will be convenience archives rather than shared libraries.  If you  
> > want
> > to have an uninstalled shared library for testing, then you can use
> >
> > check_LTLIBRARIES = libsupport.la
> > # induce libtool to create a shared library:
> > libsupport_la_LDFLAGS = -rpath /nowhere
> > libsupport_la_SOURCES = \
> >        ...
> 
> Ah, good to know.  Other than the comment being wrong, is this a  
> problem?

I don't think so.

> > 2) test/dss/ has only a Makefile with 'CC = mpicc' hardcoded.  That
> > looks like it won't use the correct (uninstalled) mpicc but requires a
> > prior 'make install'.  Not sure whether that's intentional.
> 
> It is actually; these tests are always manually created by a  
> developer.  Our "make check" framework is not very complete.  Maybe  
> someday...

Ah, ok.  I somehow thought you must have completed this long ago,
having a test framework for uninstalled programs and libraries.

Cheers,
Ralf

Reply via email to