1
0
mirror of https://github.com/madler/zlib.git synced 2026-10-25 14:39:19 +03:00

116 Commits

Author SHA1 Message Date
Robert Wolke
60ab906ea2 Add setting of VGFMAFLAG to configure for s390x. 2026-03-23 21:07:26 -07:00
Mark Adler
f8b0f9b871 Use command instead of which in ./configure. 2026-02-17 01:13:25 -08:00
Mark Adler
725b6eee7c Fix --insecure option for shared libraries. 2026-02-16 17:13:29 -08:00
Mark Adler
09f8d2b40e Add --disable-shared to --static ./configure option.
To be consistent with --enable-shared alternative to --shared
option.
2026-02-13 14:10:20 -08:00
Mark Adler
aa82531bc5 Permit all ./configure parameters to use '=' or ' '. 2026-02-12 22:32:06 -08:00
DoctorNoobingstoneIPresume
00aa188dab Permit ./configure parameters using '=' to contain '='. 2026-02-12 22:32:06 -08:00
Mika Lindqvist
43386cf1dd Add --mandir to ./configure to specify manual directory. 2026-02-11 15:19:44 -08:00
Victor Kirhenshtein
3dc79aae4e Fix AIX compile options for 64 bits. 2026-02-11 15:16:57 -08:00
Mark Adler
fd2fe58bf4 Add more compiler warnings for ./configure --warn --warn. 2026-02-09 07:09:52 -08:00
Mark Adler
8371b539e2 Allow --const to be used in configure without --warn. 2026-02-09 07:09:52 -08:00
Mark Adler
f7d8be0478 Add a test to configure to check for a working compiler. 2026-02-09 07:08:54 -08:00
Khem Raj
9eadab4258 Pass LDFLAGS to link tests in configure.
LDFLAGS may contain critical flags without which linking won't
succeed. Ensure that all configure tests involving link-time checks
use LDFLAGS along with CFLAGS so that the tests perform correctly.
Without this some tests may fail, resulting in incorrect configure
results.
2026-01-29 00:59:54 -08:00
Nicolas Cellier
d380a71462 Add the architecture to the shared compile flags in configure. 2026-01-28 17:51:38 -08:00
Ilya Leoshkevich
07f2d4237e Vectorize the CRC-32 calculation on the s390x.
Use vector extensions when compiling for s390x and binutils knows
about them. At runtime, check whether kernel supports vector
extensions (it has to be not just the CPU, but also the kernel)
and choose between the regular and the vectorized implementations.

Co-authored-by: Eduard Stefes <eddy@linux.ibm.com>
2026-01-27 20:22:17 -08:00
Mark Adler
78832f5fe3 Add --undefined option to ./configure for UBSan checker. 2026-01-10 21:40:07 -08:00
Mark Adler
fd366384cf Prevent the use of insecure functions without an explicit request.
ZLIB_INSECURE must be defined in order to compile code that uses
the insecure functions vsprintf() or sprintf(). This would occur
only if the standard vsnprintf() or snprintf() functions are not
available. Providing the --insecure option to ./configure will
define ZLIB_INSECURE. A flag is added to zlibCompileFlags() to
indicate that gzprintf() is not implemented due to the need for
the use of an insecure function, but ZLIB_INSECURE was not
defined.
2026-01-05 15:03:04 -06:00
Mark Adler
66bdcdbe9d Look for gcov in configure only if coverage was requested. 2025-12-08 04:22:31 -08:00
Mark Adler
7108497fda Check that HAVE_UNISTD_H and HAVE_STDARG_H are not defined as 0. 2025-02-13 22:44:48 -08:00
Vollstrecker
e677f1f1c7 Disable make cover if no gcov was found. 2025-01-31 20:01:41 -08:00
Vollstrecker
2408dedfa5 Support clang without version suffix for coverage testing. 2025-01-31 20:01:41 -08:00
Vollstrecker
44919160de Adjust coverage testing to the llvm gcov calling convention. 2025-01-31 19:59:10 -08:00
Oscar Lesta
64191119d8 Add Haiku to configure for proper LDSHARED settings. 2024-10-07 07:28:11 -07:00
qyt
4f8a17e8cb Add -fPIC to compiler options for static library build on Android. 2024-03-29 18:36:16 -07:00
Aleksei Shpakovskii
04ca30003f Enable build of shared library on AIX. 2024-01-23 18:21:05 -08:00
Mark Adler
b289a50fc5 Ignore unknown options in configure. 2024-01-23 10:59:41 -08:00
Mark Adler
88ec24670e Remove -w compile option in configure test.
Not all C compilers have a -w option.
2024-01-20 18:29:31 -08:00
Dan Kegel
9404df5a1f Use updated zconf.h when building out of directory with configure. 2024-01-19 16:16:11 -08:00
Mark Adler
0f68a0d89d Limit the length of Darwin shared library version number. 2023-08-18 16:17:33 -07:00
Mark Adler
5dc7681ff1 Fix version numbering for Darwin shared library. 2023-08-18 16:01:06 -07:00
Mark Adler
09155eaa2f zlib 1.3 2023-08-18 01:45:36 -07:00
OldWorldOrdr
daf27aed08 Look for a cross-compile libtool first in configure.
Permit cross-compilation for Darwin.
2023-08-17 17:12:52 -07:00
Mark Adler
1411ccafc0 Add memory sanitizer to configure (--memory).
This also adds --address for the address sanitizer, in addition to
the existing --sanitizer. -fno-omit-frame-pointer has been added
for both sanitizers to improve the error reporting.
2023-08-12 11:03:46 -07:00
Dimitri Papadopoulos
c7ddcc2e0e Fix some spelling errors. 2023-08-03 13:53:24 -07:00
Mark Adler
e9d5486e66 Remove K&R function definitions from zlib.
C2X has removed K&R definitions from the C function syntax.
Though the standard has not yet been approved, some high-profile
compilers are now issuing warnings when such definitions are
encountered.
2023-04-15 21:17:31 -07:00
Mark Adler
5799c14c85 Turn off C2X warning about deprecated K&R function syntax.
This is a temporary workaround before excising the K&R prototypes.
2023-04-13 20:09:52 -07:00
Mark Adler
723abd54d8 Minor formatting changes in configure.
No code changes.
2022-10-10 11:11:12 -07:00
Mark Adler
0091cb0281 Fix linking on AIX with gcc. 2022-10-10 11:00:49 -07:00
Mark Adler
29fd715fd0 Turn off RWX segment warnings on sparc systems. 2022-10-10 10:30:22 -07:00
Mark Adler
d30b763dac Remove vestigial line from configure. 2022-10-09 19:44:32 -07:00
Mark Adler
013c0ca0f4 Search for system name in CHOST instead of trying to extract it. 2022-10-09 16:55:49 -07:00
Mark Adler
8cca42c33f Remove bypass of MinGW gcc case in configure. 2022-10-09 15:40:35 -07:00
Mark Adler
d0704a8201 Remove deleted assembler code references.
The code was removed, but the builds that used the code were not
updated. This fixes that. Thanks to Adenilson and toxieainc for
the patches.
2022-10-06 20:43:09 -07:00
Mark Adler
095da07753 Remove -pedantic from configure -w compile options. 2022-10-06 01:03:18 -07:00
Mark Adler
22aec0cb0b Add -g when debugging with -fsanitize=address to include symbols. 2022-07-31 09:32:43 -07:00
Mark Adler
05796d3d8d Fix configure issue that discarded provided CC definition. 2022-03-28 18:34:10 -07:00
Mark Adler
e9a52aa129 Check for cc masquerading as gcc or clang in configure. 2022-03-27 13:47:33 -07:00
Mark Adler
6847291ea0 Separate out address sanitizing from warnings in configure. 2022-03-27 01:54:17 -07:00
Mark Adler
f8719f5ae5 Speed up software CRC-32 computation by a factor of 1.5 to 3.
Use the interleaved method of Kadatch and Jenkins in order to make
use of pipelined instructions through multiple ALUs in a single
core. This also speeds up and simplifies the combination of CRCs,
and updates the functions to pre-calculate and use an operator for
CRC combination.
2018-12-26 12:26:52 -08:00
Mark Adler
be5e3647c4 Add address checking in clang to -w option of configure. 2017-02-18 23:07:01 -08:00
Mark Adler
cca27e95cf Avoid the need for ssize_t.
Limit read() and write() requests to sizes that fit in an int.
This allows storing the return value in an int, and avoiding the
need to use or construct an ssize_t type. This is required for
Microsoft C, whose _read and _write functions take an unsigned
request and return an int.
2016-12-31 10:06:40 -08:00