mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
build: Remove zlib from the cache if we failed to pass all the tests
This will avoid problems with redefinition of libs tests
This commit is contained in:
parent
4e30a5dd0b
commit
a509b93518
@ -15,6 +15,12 @@ def configure(conf):
|
||||
msg='Checking for ZLIB_VERNUM >= 0x1230',
|
||||
define='HAVE_ZLIB')
|
||||
|
||||
# If we don't do this then we will receive an error that lib 'z'
|
||||
# is already declared as a system lib (for the cases where zlibVersion
|
||||
# is defined
|
||||
if not conf.env['HAVE_ZLIB']:
|
||||
conf.LOCAL_CACHE_SET('TARGET_TYPE', 'z', 'EMPTY')
|
||||
|
||||
def build(bld):
|
||||
if not bld.CONFIG_SET('HAVE_ZLIB'):
|
||||
bld.SAMBA_LIBRARY('z',
|
||||
|
Loading…
Reference in New Issue
Block a user