Allow to check dlfcn when cross-compiling

This commit is contained in:
fidomax 2021-01-28 14:34:34 +03:00 committed by GitHub
parent bd961c4da2
commit 28ff0be6b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1549,11 +1549,10 @@ if not preconfigured:
else:
env['MISSING_DEPS'].append('libxml2')
if not env['HOST']:
if conf.CheckHasDlfcn():
env.Append(CPPDEFINES = '-DMAPNIK_HAS_DLCFN')
else:
env['SKIPPED_DEPS'].append('dlfcn')
if conf.CheckHasDlfcn():
env.Append(CPPDEFINES = '-DMAPNIK_HAS_DLCFN')
else:
env['SKIPPED_DEPS'].append('dlfcn')
if env['JPEG']:
OPTIONAL_LIBSHEADERS.append(['jpeg', ['stdio.h', 'jpeglib.h'], False,'C','-DHAVE_JPEG'])