reduce the size of plugin libraries by hiding unneeded symbols

This commit is contained in:
Dane Springmeyer 2011-11-11 15:37:10 -08:00
parent 85b938806b
commit 1d881af35a
13 changed files with 29 additions and 12 deletions

View file

@ -1591,7 +1591,12 @@ if not HELP_REQUESTED:
# export env so it is available in build.py files # export env so it is available in build.py files
Export('env') Export('env')
plugin_base = env.Clone()
plugin_base.Append(CXXFLAGS='-fvisibility=hidden')
plugin_base.Append(CXXFLAGS='-fvisibility-inlines-hidden')
Export('plugin_base')
# clear the '_CPPDEFFLAGS' variable # clear the '_CPPDEFFLAGS' variable
# for unknown reasons this variable puts -DNone # for unknown reasons this variable puts -DNone

View file

@ -1,12 +1,13 @@
#!/usr/bin/env python #!/usr/bin/env python
import os import os
Import ('plugin_base')
Import ('env') Import ('env')
PLUGIN_NAME = 'csv' PLUGIN_NAME = 'csv'
install_dest = env['MAPNIK_INPUT_PLUGINS_DEST'] install_dest = env['MAPNIK_INPUT_PLUGINS_DEST']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
plugin_sources = Split( plugin_sources = Split(
""" """

View file

@ -19,11 +19,12 @@
# #
# $Id$ # $Id$
Import ('plugin_base')
Import ('env') Import ('env')
prefix = env['PREFIX'] prefix = env['PREFIX']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
gdal_src = Split( gdal_src = Split(
""" """

View file

@ -20,11 +20,12 @@
# $Id$ # $Id$
Import ('plugin_base')
Import ('env') Import ('env')
prefix = env['PREFIX'] prefix = env['PREFIX']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
geos_src = Split( geos_src = Split(
""" """

View file

@ -19,11 +19,12 @@
# #
# $Id$ # $Id$
Import ('plugin_base')
Import ('env') Import ('env')
prefix = env['PREFIX'] prefix = env['PREFIX']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
kismet_src = Split( kismet_src = Split(
""" """

View file

@ -19,11 +19,12 @@
# #
# $Id$ # $Id$
Import ('plugin_base')
Import ('env') Import ('env')
prefix = env['PREFIX'] prefix = env['PREFIX']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
occi_src = Split( occi_src = Split(
""" """

View file

@ -20,11 +20,12 @@
# $Id$ # $Id$
Import ('plugin_base')
Import ('env') Import ('env')
prefix = env['PREFIX'] prefix = env['PREFIX']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
ogr_src = Split( ogr_src = Split(
""" """

View file

@ -19,11 +19,12 @@
# #
# $Id$ # $Id$
Import ('plugin_base')
Import ('env') Import ('env')
prefix = env['PREFIX'] prefix = env['PREFIX']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
osm_src = Split( osm_src = Split(
""" """

View file

@ -19,11 +19,12 @@
# #
# $Id$ # $Id$
Import ('plugin_base')
Import ('env') Import ('env')
prefix = env['PREFIX'] prefix = env['PREFIX']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
postgis_src = Split( postgis_src = Split(
""" """

View file

@ -19,11 +19,12 @@
# #
# $Id$ # $Id$
Import ('plugin_base')
Import ('env') Import ('env')
prefix = env['PREFIX'] prefix = env['PREFIX']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
raster_src = Split( raster_src = Split(
""" """

View file

@ -19,11 +19,12 @@
# #
# $Id$ # $Id$
Import ('plugin_base')
Import ('env') Import ('env')
prefix = env['PREFIX'] prefix = env['PREFIX']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
rasterlite_src = Split( rasterlite_src = Split(
""" """

View file

@ -20,11 +20,12 @@
# $Id$ # $Id$
Import ('plugin_base')
Import ('env') Import ('env')
prefix = env['PREFIX'] prefix = env['PREFIX']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
shape_src = Split( shape_src = Split(
""" """

View file

@ -19,11 +19,12 @@
# #
# $Id$ # $Id$
Import ('plugin_base')
Import ('env') Import ('env')
prefix = env['PREFIX'] prefix = env['PREFIX']
plugin_env = env.Clone() plugin_env = plugin_base.Clone()
sqlite_src = Split( sqlite_src = Split(
""" """