From 7649a6921fc36a518a38d0c35006ed100ad5486b Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 5 Apr 2015 16:55:11 +0200 Subject: [PATCH] waf: Fix core plugins on Linux The -fvisibility=hidden flag for libgeany.so is also applied to plugins. This is not desirable. --- wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wscript b/wscript index af7f65c01..9fbd21058 100644 --- a/wscript +++ b/wscript @@ -319,6 +319,7 @@ but you then may not have a local copy of the HTML manual.''' elif visibility_hidden_supported: geany_symbol_flags = ['-fvisibility=hidden', '-DGEANY_EXPORT_SYMBOL=__attribute__((visibility("default")))'] + conf.env['CFLAGS_plugin'] = '-fvisibility=default' else: # unknown, define to nothing geany_symbol_flags = ['-DGEANY_EXPORT_SYMBOL='] geany_symbol_flags.append('-DGEANY_API_SYMBOL=GEANY_EXPORT_SYMBOL') @@ -406,6 +407,7 @@ def build(bld): includes = ['.', 'src/', 'scintilla/include', 'tagmanager/src'], defines = 'G_LOG_DOMAIN="%s"' % plugin_name, target = plugin_name, + cflags = bld.env['CFLAGS_plugin'], uselib = ['GTK', 'GLIB', 'GMODULE'] + uselib_add, use = ['geany'], install_path = instpath) -- 2.11.4.GIT