waf: Fix core plugins on Linux
The -fvisibility=hidden flag for libgeany.so is also applied to plugins. This is not desirable.
This commit is contained in:
parent
a1f2d0b94a
commit
7649a6921f
2
wscript
2
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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user