diff --git a/utils/mapnik-config/build.py b/utils/mapnik-config/build.py index c83a099d6..9dad9a22a 100644 --- a/utils/mapnik-config/build.py +++ b/utils/mapnik-config/build.py @@ -53,13 +53,19 @@ def write_config(configuration,template,config_file): # todo - refine this list + other_includes = ''.join([' -I%s' % i for i in config_env['CPPPATH'] if not i.startswith('#')]) +other_includes += ' ' + other_includes += ' '.join(config_env['LIBMAPNIK_CXXFLAGS']) +other_includes += ' ' + if config_env['HAS_CAIRO']: other_includes += ''.join([' -I%s' % i for i in env['CAIROMM_CPPPATHS'] if not i.startswith('#')]) + ldflags = config_env['CUSTOM_LDFLAGS'] + ''.join([' -L%s' % i for i in config_env['LIBPATH'] if not i.startswith('#')]) dep_libs = ''.join([' -l%s' % i for i in env['LIBMAPNIK_LIBS']])