Shared library on Windows systems

25 views
Skip to first unread message

Jean-Pierre Flori

unread,
Dec 10, 2012, 1:14:22 PM12/10/12
to linbox...@googlegroups.com
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#L1844

For MPFR, you can have a look here:
https://gforge.inria.fr/scm/viewvc.php/trunk/configure.ac?view=markup&revision=8432&root=mpfr
The solution is similar.

Best,
JP

Clement Pernet

unread,
Sep 5, 2014, 3:47:28 AM9/5/14
to linbox...@googlegroups.com
Hi,

Sorry for having let this report unanswered by almost 2 years.
I just applied your patch upstream.
Clément
> --
> You received this message because you are subscribed to the Google Groups "linbox-devel" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/linbox-devel/-/AqY6303wWyYJ.
> To post to this group, send email to linbox...@googlegroups.com.
> To unsubscribe from this group, send email to linbox-devel...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/linbox-devel?hl=en.

Jean-Pierre Flori

unread,
Sep 5, 2014, 4:12:02 AM9/5/14
to linbox...@googlegroups.com
Thanks :)
Reply all
Reply to author
Forward
0 new messages