mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
meson: hide symbols by default unless explicitly exported
This commit is contained in:
parent
d1eb5f727c
commit
57b542c5e5
1 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,14 @@ else
|
|||
noseh_link_args = []
|
||||
endif
|
||||
|
||||
# Symbol visibility
|
||||
if cc.has_argument('-fvisibility=hidden')
|
||||
add_project_arguments('-fvisibility=hidden', language: 'c')
|
||||
endif
|
||||
if cxx.has_argument('-fvisibility=hidden')
|
||||
add_project_arguments('-fvisibility=hidden', language: 'cpp')
|
||||
endif
|
||||
|
||||
cdata = configuration_data()
|
||||
check_headers = [
|
||||
['HAVE_DLFCN_H', 'dlfcn.h'],
|
||||
|
|
Loading…
Reference in a new issue