Commit 597ba6cf authored by Sebastian Ramacher's avatar Sebastian Ramacher

Use meson's gnu_symbol_visibility

parent 281011a1
project('girara', 'c', project('girara', 'c',
version: '0.3.1', version: '0.3.1',
meson_version: '>=0.47', meson_version: '>=0.48',
default_options: 'c_std=c11', default_options: 'c_std=c11',
) )
...@@ -52,8 +52,7 @@ flags = [ ...@@ -52,8 +52,7 @@ flags = [
'-pedantic', '-pedantic',
'-Wmissing-declarations', '-Wmissing-declarations',
'-Werror=implicit-function-declaration', '-Werror=implicit-function-declaration',
'-Werror=vla', '-Werror=vla'
'-fvisibility=hidden', # replace with gnu_symbol_visibility: 'hidden' (meson >= 0.48)
] ]
flags = cc.get_supported_arguments(flags) flags = cc.get_supported_arguments(flags)
...@@ -137,7 +136,8 @@ girara = library( ...@@ -137,7 +136,8 @@ girara = library(
version: so_version, version: so_version,
install: true, install: true,
include_directories: include_directories, include_directories: include_directories,
c_args: defines + flags c_args: defines + flags,
gnu_symbol_visibility: 'hidden'
) )
install_headers(headers, subdir: 'girara') install_headers(headers, subdir: 'girara')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment