scons: unbreak memory mapped access for shapefiles by fixing the setting of SHAPE_MEMORY_MAPPED_FILE
This commit is contained in:
parent
0619477238
commit
b0436a3ad1
2 changed files with 3 additions and 4 deletions
|
@ -1152,6 +1152,9 @@ if not preconfigured:
|
|||
if env['THREADING'] == 'multi':
|
||||
env.Append(CXXFLAGS = '-mt')
|
||||
|
||||
if env['SHAPE_MEMORY_MAPPED_FILE']:
|
||||
env.Append(CPPDEFINES = '-DSHAPE_MEMORY_MAPPED_FILE')
|
||||
|
||||
# allow for mac osx /usr/lib/libicucore.dylib compatibility
|
||||
# requires custom supplied headers since Apple does not include them
|
||||
# details: http://lists.apple.com/archives/xcode-users/2005/Jun/msg00633.html
|
||||
|
|
|
@ -335,10 +335,6 @@ if env['SVG_RENDERER']: # svg backend
|
|||
lib_env.Append(CPPDEFINES = '-DSVG_RENDERER')
|
||||
libmapnik_defines.append('-DSVG_RENDERER')
|
||||
|
||||
if env['SHAPE_MEMORY_MAPPED_FILE']:
|
||||
lib_env.Append(CPPDEFINES = '-DSHAPE_MEMORY_MAPPED_FILE')
|
||||
libmapnik_defines.append('-DSHAPE_MEMORY_MAPPED_FILE')
|
||||
|
||||
if env.get('BOOST_LIB_VERSION_FROM_HEADER'):
|
||||
boost_version_from_header = int(env['BOOST_LIB_VERSION_FROM_HEADER'].split('_')[1])
|
||||
if boost_version_from_header < 46:
|
||||
|
|
Loading…
Reference in a new issue