From 548905611c130ea9d31929a0caf7a198d8bac462 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 20 Oct 2020 20:28:29 +0300 Subject: py: add -fvisibility=hidden Signed-off-by: Tomi Valkeinen --- py/pykms/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/py/pykms/meson.build b/py/pykms/meson.build index db2f8c7..518040b 100644 --- a/py/pykms/meson.build +++ b/py/pykms/meson.build @@ -32,6 +32,8 @@ if get_option('utils') pykms_deps += [ libkmsxxutil_dep ] endif +pykms_args = [ '-fvisibility=hidden' ] + destdir = get_option('libdir') / 'python' + py3_dep.version() / 'site-packages/pykms' pykms = shared_module('pykms', @@ -39,7 +41,8 @@ pykms = shared_module('pykms', install : true, install_dir : destdir, name_prefix : '', - dependencies : pykms_deps) + dependencies : pykms_deps, + cpp_args : pykms_args) # Copy __init__.py to build dir so that we can run without installing configure_file(input: '__init__.py', output: '__init__.py', copy: true, -- cgit v1.2.3