Dear all,
Currently LinBox does not build a shared library on Windows systems (let's say Cygwin and different MinGW flavours) by default.
Would you consider adding the "-no-undefined" flag to
"liblinbox_la_LDFLAGS" in src/Makefile.am?
This flag is needed under such systems to
promise libtool that the linker won't encounter undefined symbols at
link time.
Without it, recent (since some years) versions of libtool just don't
even try linking and fall back to only making static libraries.
(See
http://www.sourceware.org/autobook/autobook/autobook_88.html for some doc.)
This flag should be harmless on other systems, but you could also only
add it conditionally on the fact the build is performed on Cygwin or others
(e.g. check __CYGWIN__, surely some autotools magic does it as well)
and/or that a shared version is being built.
The corresponding piece of code in MPIR is here:
https://github.com/wbhart/mpir/blob/master/configure.in#L1844For MPFR, you can have a look here:
https://gforge.inria.fr/scm/viewvc.php/trunk/configure.ac?view=markup&revision=8432&root=mpfrThe solution is similar.
Best,
JP