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:
eb01079
)
build: use -fvisibility=hidden for objc code
author
Matthew Waters
<matthew@centricular.com>
Tue, 3 Dec 2019 03:16:06 +0000
(14:16 +1100)
committer
Matthew Waters
<matthew@centricular.com>
Tue, 3 Dec 2019 03:16:06 +0000
(14:16 +1100)
meson.build
patch
|
blob
|
history
diff --git
a/meson.build
b/meson.build
index
c8147c2
..
f95df5d
100644
(file)
--- a/
meson.build
+++ b/
meson.build
@@
-67,6
+67,9
@@
if cc.get_id() == 'msvc'
export_define = '__declspec(dllexport) extern'
elif cc.has_argument('-fvisibility=hidden')
add_project_arguments('-fvisibility=hidden', language: 'c')
+ if have_objc
+ add_project_arguments('-fvisibility=hidden', language: 'objc')
+ endif
export_define = 'extern __attribute__ ((visibility ("default")))'
else
export_define = 'extern'