From b0436a3ad18a2d8825b420d80ed8fd44085bab56 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 19 Sep 2013 20:51:49 -0700 Subject: [PATCH] scons: unbreak memory mapped access for shapefiles by fixing the setting of SHAPE_MEMORY_MAPPED_FILE --- SConstruct | 3 +++ src/build.py | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/SConstruct b/SConstruct index 7ce0e6b1f..08c403c10 100644 --- a/SConstruct +++ b/SConstruct @@ -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 diff --git a/src/build.py b/src/build.py index 0dba64a0e..ce8570da2 100644 --- a/src/build.py +++ b/src/build.py @@ -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: