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:
parent
8cbb8aa1c0
commit
2291c8b698
1 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue