On 11/3/2014 3:59 PM, Jean-Pierre Flori wrote:
Hi Marco,
Hi Jean-Pierre,
this is a request for Andrew Makhorin as upstream maintainer,
not to me as I am only the cygwin package maintainer
I know this surely is a low priority for you, but any chance to
include the needed libtool "-no-undefined" magic into your build
system?
The attached patch should basically do that (you need to run
`autoreconf -fiv` or something equivalent to regenerate the build
system).
As previously stated, it is only needed for people wanting to build
GLPK themselves from source on Cygwin or MinGW.
The build you produce is perfectly fine for people wanting just
linking to a binary distributed version of GLPK.
Best,
for your info,
attached the patch used for the cygwin build to add the "-no-undefined"
Regards
Marco
--- configure.ac 2014-08-22 08:00:00.000000000 +0200
+++ configure.ac 2014-08-24 07:15:49.535477800 +0200
@@ -141,6 +141,19 @@ else
AC_MSG_RESULT([no])
fi
+AC_MSG_CHECKING([if libtool needs -no-undefined flag to build shared
libraries])
+case "`uname`" in
+ CYGWIN*|MINGW*|AIX*)
+ ## Add in the -no-undefined flag to LDFLAGS for libtool.
+ AC_MSG_RESULT([yes])
+ LDFLAGS="$LDFLAGS -no-undefined"
+ ;;
+ *)
+ ## Don't add in anything.
+ AC_MSG_RESULT([no])
+ ;;
+esac
+
AC_CONFIG_FILES(
[src/Makefile examples/Makefile Makefile])
AC_OUTPUT
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk