From ac5cd2e3864b3377e0241d008cee3d3440b6c3f2 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Thu, 9 May 2013 17:28:04 -0700 Subject: [PATCH] -fvisibility=hidden works with plugins with no code changes - refs #1826 --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index aeb5111b5..4d99c9b36 100644 --- a/SConstruct +++ b/SConstruct @@ -1712,8 +1712,8 @@ if not HELP_REQUESTED: Export('env') plugin_base = env.Clone() - #plugin_base.Append(CXXFLAGS='-fvisibility=hidden') - #plugin_base.Append(CXXFLAGS='-fvisibility-inlines-hidden') + if not env['DEBUG']: + plugin_base.Append(CXXFLAGS='-fvisibility=hidden') Export('plugin_base')