projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1eb5f7
)
meson: hide symbols by default unless explicitly exported
author
Tim-Philipp Müller
<tim@centricular.com>
Fri, 11 Aug 2017 12:59:04 +0000
(13:59 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Fri, 11 Aug 2017 12:59:04 +0000
(13:59 +0100)
meson.build
patch
|
blob
|
history
diff --git
a/meson.build
b/meson.build
index
f09faad
..
cd79e52
100644
(file)
--- a/
meson.build
+++ b/
meson.build
@@
-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'],