mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-04 19:50:19 +00:00
Define NO_GZIP in zconf.h instead of at compile time
This commit is contained in:
parent
36aaf1ff1a
commit
9f81a37aa4
@ -75,9 +75,6 @@ FILE(GLOB SRC_SHA1 src/block-sha1/*.c)
|
|||||||
FILE(GLOB SRC_PLAT src/unix/*.c)
|
FILE(GLOB SRC_PLAT src/unix/*.c)
|
||||||
FILE(GLOB SRC_H include/git2/*.h)
|
FILE(GLOB SRC_H include/git2/*.h)
|
||||||
|
|
||||||
# Do not build Zlib with GZIP support
|
|
||||||
ADD_DEFINITIONS(-DNO_GZIP)
|
|
||||||
|
|
||||||
# On Windows use specific platform sources
|
# On Windows use specific platform sources
|
||||||
IF (WIN32 AND NOT CYGWIN)
|
IF (WIN32 AND NOT CYGWIN)
|
||||||
ADD_DEFINITIONS(-DWIN32 -D_DEBUG -D_LIB)
|
ADD_DEFINITIONS(-DWIN32 -D_DEBUG -D_LIB)
|
||||||
|
1
deps/zlib/zconf.h
vendored
1
deps/zlib/zconf.h
vendored
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include "../../src/common.h"
|
#include "../../src/common.h"
|
||||||
|
|
||||||
|
#define NO_GZIP
|
||||||
#define STDC
|
#define STDC
|
||||||
|
|
||||||
/* Jeez, don't complain about non-prototype
|
/* Jeez, don't complain about non-prototype
|
||||||
|
3
wscript
3
wscript
@ -61,9 +61,6 @@ def configure(conf):
|
|||||||
conf.env.PLATFORM = 'unix'
|
conf.env.PLATFORM = 'unix'
|
||||||
conf.check_cc(lib='pthread', uselib_store='pthread')
|
conf.check_cc(lib='pthread', uselib_store='pthread')
|
||||||
|
|
||||||
# Do not build ZLib with GZIP support
|
|
||||||
conf.env.DEFINES += ['NO_GZIP']
|
|
||||||
|
|
||||||
# check for sqlite3
|
# check for sqlite3
|
||||||
if conf.options.use_sqlite and conf.check_cc(
|
if conf.options.use_sqlite and conf.check_cc(
|
||||||
lib='sqlite3', uselib_store='sqlite3', install_path=None, mandatory=False):
|
lib='sqlite3', uselib_store='sqlite3', install_path=None, mandatory=False):
|
||||||
|
Loading…
Reference in New Issue
Block a user