[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] [Fwd: Build glpk as a shared library on Cygwin, MinGW and si
[Help-glpk] [Fwd: Build glpk as a shared library on Cygwin, MinGW and similar systems]
Mon, 10 Dec 2012 23:20:06 +0400
-------- Forwarded Message --------
From: Jean-Pierre Flori <address@hidden>
Subject: Build glpk as a shared library on Cygwin, MinGW and similar
Date: Mon, 10 Dec 2012 19:20:19 +0100
First thanks for this great library.
I'd like to be able to build glpk as a shared library on Cygwin and MinGW.
But on such system (and surely others), libtool will refuse without some help.
Would you consider adding the "-no-undefined" flag to
"libglpk_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
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,
using some case $host in .... *-cygwin or something like that)
and/or that a shared version is being built.
The corresponding piece of code in MPIR is here:
For MPFR, you can have a look here:
The solution is similar.
- [Help-glpk] [Fwd: Build glpk as a shared library on Cygwin, MinGW and similar systems],
Andrew Makhorin <=