disable hidden visibility for plugins and hidden inlines for the library by default for 2.2 release - can re-enable after more testing - refs #1863

This commit is contained in:
Dane Springmeyer 2013-05-24 12:46:51 -07:00
parent 8cbb8aa1c0
commit 2291c8b698

View file

@ -1650,7 +1650,9 @@ if not preconfigured:
if env['DEBUG']: if env['DEBUG']:
env.Append(CXXFLAGS = common_cxx_flags + '-O0 -fno-inline') env.Append(CXXFLAGS = common_cxx_flags + '-O0 -fno-inline')
else: else:
env.Append(CXXFLAGS = common_cxx_flags + '-O%s -fvisibility-inlines-hidden -fno-strict-aliasing -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts' % (env['OPTIMIZATION'])) # TODO - add back -fvisibility-inlines-hidden
# https://github.com/mapnik/mapnik/issues/1863
env.Append(CXXFLAGS = common_cxx_flags + '-O%s -fno-strict-aliasing -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts' % (env['OPTIMIZATION']))
if env['DEBUG_UNDEFINED']: if env['DEBUG_UNDEFINED']:
env.Append(CXXFLAGS = '-fsanitize=undefined-trap -fsanitize-undefined-trap-on-error -ftrapv -fwrapv') env.Append(CXXFLAGS = '-fsanitize=undefined-trap -fsanitize-undefined-trap-on-error -ftrapv -fwrapv')
@ -1765,8 +1767,6 @@ if not HELP_REQUESTED:
Export('env') Export('env')
plugin_base = env.Clone() plugin_base = env.Clone()
if not env['DEBUG']:
plugin_base.Append(CXXFLAGS='-fvisibility=hidden')
Export('plugin_base') Export('plugin_base')