summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2019-05-29 21:05:52 (GMT)
committerMark Brand <mabrand@mabrand.nl>2019-05-29 21:08:08 (GMT)
commit52ad348d55d3b25f6e4d04eae53b66168e4b4ced (patch)
tree32fcf683ac721adacd5420456f6793f4ba046d22
parent6940e567976309c385e88643a1a4bc2ad85eeb88 (diff)
downloadmxe-52ad348d55d3b25f6e4d04eae53b66168e4b4ced.zip
mxe-52ad348d55d3b25f6e4d04eae53b66168e4b4ced.tar.gz
mxe-52ad348d55d3b25f6e4d04eae53b66168e4b4ced.tar.bz2
update glpk
-rw-r--r--src/glpk-1-fixes.patch60
-rw-r--r--src/glpk.mk4
2 files changed, 62 insertions, 2 deletions
diff --git a/src/glpk-1-fixes.patch b/src/glpk-1-fixes.patch
new file mode 100644
index 0000000..992a407
--- /dev/null
+++ b/src/glpk-1-fixes.patch
@@ -0,0 +1,60 @@
+This file is part of MXE. See LICENSE.md for licensing information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Mark Brand <mabrand@mabrand.nl>
+Date: Wed, 29 May 2019 23:01:04 +0200
+Subject: [PATCH 1/1] fix mingw build
+
+Author: Chris Matrakidis
+taken from https://lists.gnu.org/archive/html/help-glpk/2017-06/msg00039.html
+
+diff --git a/config.h.in b/config.h.in
+index 1111111..2222222 100644
+--- a/config.h.in
++++ b/config.h.in
+@@ -27,4 +27,7 @@
+ #undef TLS
+ /* thread local storage-class specifier for re-entrancy (if any) */
+
++#undef __WOE__
++/* for windows native compilers */
++
+ /* eof */
+diff --git a/configure.ac b/configure.ac
+index 1111111..2222222 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -71,7 +71,13 @@ AC_CHECK_LIB([m], [exp])
+
+ dnl Check for <sys/time.h> header
+ AC_CHECK_HEADER([sys/time.h],
+- AC_DEFINE([HAVE_SYS_TIME_H], [1], [N/A]))
++ ## Check for 64bit windows timeval type issue (tv_sec is not time_t)
++ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
++ #include <sys/time.h>
++ enum {x = 1/(!!(sizeof(time_t) ==
++ sizeof(((struct timeval *)0)->tv_sec)))
++ };])], [AC_DEFINE([HAVE_SYS_TIME_H], [1], [N/A])],
++ [[AC_MSG_WARN([sys/time.h not used, tv_sec is not time_t])]]))
+
+ dnl Check for gettimeofday function
+ AC_CHECK_FUNC([gettimeofday],
+@@ -190,6 +196,16 @@ case "${host}" in
+ esac
+ AC_SUBST([NOUNDEFINED])
+
++AC_MSG_CHECKING([for windows native compiler])
++case "${host}" in *-*-mingw*)
++ AC_MSG_RESULT([yes])
++ AC_DEFINE([__WOE__], [1], [N/A])
++ ;;
++ *)
++ AC_MSG_RESULT([no])
++ ;;
++esac
++
+ AC_CONFIG_FILES(
+ [src/Makefile examples/Makefile Makefile])
+ AC_OUTPUT
diff --git a/src/glpk.mk b/src/glpk.mk
index 5ed03bd..d089caa 100644
--- a/src/glpk.mk
+++ b/src/glpk.mk
@@ -4,8 +4,8 @@ PKG := glpk
$(PKG)_WEBSITE := https://www.gnu.org/software/glpk/
$(PKG)_DESCR := GNU Linear Programming Kit
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 4.60
-$(PKG)_CHECKSUM := 1356620cb0a0d33ac3411dd49d9fd40d53ece73eaec8f6b8d19a77887ff5e297
+$(PKG)_VERSION := 4.65
+$(PKG)_CHECKSUM := 4281e29b628864dfe48d393a7bedd781e5b475387c20d8b0158f329994721a10
$(PKG)_SUBDIR := glpk-$($(PKG)_VERSION)
$(PKG)_FILE := glpk-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://ftp.gnu.org/gnu/glpk/glpk-$($(PKG)_VERSION).tar.gz