-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathglpk-unbundle-zlib.patch
110 lines (104 loc) · 3.16 KB
/
glpk-unbundle-zlib.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
diff -urN glpk-4.65.orig/doc/glpk11.tex glpk-4.65/doc/glpk11.tex
--- glpk-4.65.orig/doc/glpk11.tex 2018-02-16 00:00:00.000000000 -0700
+++ glpk-4.65/doc/glpk11.tex 2018-05-20 18:44:07.252528992 -0600
@@ -158,50 +158,4 @@ WITH THE SOFTWARE OR THE USE OR OTHER DE
\noindent
\url{http://www.cs.chalmers.se/Cs/Research/FormalMethods/MiniSat}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\section{zlib}
-
-\noindent
-zlib version 1.2.5, Copyright {\copyright} 1995--2010 Jean-loup Gailly
-and Mark Adler.
-
-\para{Description}
-
-zlib is a general purpose data compression library. All the code is
-thread safe. The data format used by the zlib library is described by
-RFCs (Request for Comments) 1950 to 1952 in the files
-\verb|rfc1950.txt| (zlib format), \verb|rfc1951.txt| (deflate format)
-and \verb|rfc1952.txt| (gzip format).
-
-\para{License}
-
-This software is provided 'as-is', without any express or implied
-warranty. In no event will the authors be held liable for any damages
-arising from the use of this software.
-
-Permission is granted to anyone to use this software for any purpose,
-including commercial applications, and to alter it and redistribute it
-freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would
- be appreciated but is not required.
-
-2. Altered source versions must be plainly marked as such, and must not
- be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source
- distribution.
-
-\hfill Jean-loup Gailly
-
-\hfill Mark Adler
-
-\para{Availability}
-
-\noindent
-\url{http://www.zlib.net/}
-
%* eof *%
diff -urN glpk-4.65.orig/src/env/stream.c glpk-4.65/src/env/stream.c
--- glpk-4.65.orig/src/env/stream.c 2018-02-16 00:00:00.000000000 -0700
+++ glpk-4.65/src/env/stream.c 2018-05-20 18:44:07.252528992 -0600
@@ -22,7 +22,7 @@
***********************************************************************/
#include "env.h"
-#include "zlib.h"
+#include <zlib.h>
struct glp_file
{ /* sequential stream descriptor */
diff -urN glpk-4.65.orig/src/Makefile.am glpk-4.65/src/Makefile.am
--- glpk-4.65.orig/src/Makefile.am 2018-02-16 00:00:00.000000000 -0700
+++ glpk-4.65/src/Makefile.am 2018-05-20 18:45:01.472363924 -0600
@@ -18,14 +18,15 @@ libglpk_la_CPPFLAGS = \
-I$(srcdir)/mpl \
-I$(srcdir)/npp \
-I$(srcdir)/proxy \
--I$(srcdir)/simplex \
--I$(srcdir)/zlib
+-I$(srcdir)/simplex
libglpk_la_LDFLAGS = \
-version-info 43:0:3 \
-export-symbols-regex '^glp_*' \
${NOUNDEFINED}
+libglpk_la_LIBADD = -lz
+
libglpk_la_SOURCES = \
amd/amd_1.c \
amd/amd_2.c \
@@ -202,21 +203,6 @@ simplex/spxprim.c \
simplex/spxprob.c \
simplex/spychuzc.c \
simplex/spychuzr.c \
-simplex/spydual.c \
-zlib/adler32.c \
-zlib/compress.c \
-zlib/crc32.c \
-zlib/deflate.c \
-zlib/gzclose.c \
-zlib/gzlib.c \
-zlib/gzread.c \
-zlib/gzwrite.c \
-zlib/inffast.c \
-zlib/inflate.c \
-zlib/inftrees.c \
-zlib/trees.c \
-zlib/uncompr.c \
-zlib/zio.c \
-zlib/zutil.c
+simplex/spydual.c
## eof ##