mxe/mxe — pull request #77 by ChristianFrisson (2012-09-09 15:10:41+00:00)
Title: added armadillo 3.4.0 with test

Hi,

Here's a fresh branch as pull request for adding armadillo 3.4.0, a library for linear algebra using blas and lapack.

I filled in but didn't check the package update.

The patch replaces the SHARED option to STATIC in the cmake ADD_LIBRARY command and reverses the order blas and lapack are added to the ARMA_LIBS list so that they are linked in the correct reverse order for static compilation (-lapack -blas).

The example is from http://arma.sourceforge.net/docs.html#eig_sym. It tests specifically if lapack properly links. When armadillo is compiled as shared library, this example crashes at runtime if lapack can't be properly loaded.

For the test -Werror has to be disabled with GCC 4.7.0 and 4.7.1, since armadillo works around a bug introduced by these and issues a warning.