Build dependency on external cppunit

Richard Cochran richardcochran at gmail.com
Fri May 8 08:09:54 PDT 2015


On Fri, May 08, 2015 at 04:53:49PM +0200, Miklos Vajna wrote:
> On Fri, May 08, 2015 at 03:55:35PM +0200, Richard Cochran <richardcochran at gmail.com> wrote:
> > Ok, it is somehow related to the cross compile configuration.  The
> > 'make cppunit.all' works as expected with a native build.
> 
> Isn't the very point of cross-compilation that the resulting binary is
> not something you can run? If so, I find it a feature that unit tests
> are not built / executed when cross-compiling. :-)

Yes, *I* would say so, but the LO build thinks otherwise!

I specifically did 'make build' in order to avoid the tests, but the
build system compiles the tests anyhow.  There are LOTS of other ways
in which cross compile is broken.  It seems clear that it really isn't
supported or tested, and so I don't expect too much.  My goal is just
to get it working, somehow, for a particular setup.

> In any case:
> 
> if test "$cross_compiling" != "yes"; then
>     libo_CHECK_SYSTEM_MODULE([cppunit],[CPPUNIT],[cppunit >= 1.12.0])
> fi
> 
> in configure.ac where cppunit is disabled in case of cross-compiling.

Ok, I'll take a look.

Thanks,
Richard



More information about the LibreOffice mailing list