On 08/11/2015 09:50, Andrew Makhorin wrote:
GLPK 4.57 Release Information
*****************************
Hi Andrew,
for the next release, can you add the attached patch
to set the "-no-undefined" for LDFLAGS for Cygwin
and similar platforms ?
In this way the source will build the shared lib
off the shelf.
Regards
Marco
--- origsrc/glpk-4.57/configure.ac 2015-11-08 08:00:00.000000000 +0100
+++ src/glpk-4.57/configure.ac 2015-11-10 07:09:53.195219900 +0100
@@ -141,6 +141,20 @@ 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])
+ NOUNDEFINED=" -no-undefined"
+ ;;
+ *)
+ ## Don't add in anything.
+ AC_MSG_RESULT([no])
+ ;;
+esac
+AC_SUBST([NOUNDEFINED])
+
AC_CONFIG_FILES(
[src/Makefile examples/Makefile Makefile])
AC_OUTPUT
--- origsrc/glpk-4.57/src/Makefile.am 2015-11-08 08:00:00.000000000 +0100
+++ src/glpk-4.57/src/Makefile.am 2015-11-10 07:11:09.639354400 +0100
@@ -19,7 +19,8 @@ libglpk_la_CPPFLAGS = \
libglpk_la_LDFLAGS = \
-version-info 38:0:2 \
--export-symbols-regex '^glp_*'
+-export-symbols-regex '^glp_*' \
+${NOUNDEFINED}
libglpk_la_SOURCES = \
avl.c \
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk