mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
build: use -fvisibility=hidden for objc code
This commit is contained in:
parent
eb0107986a
commit
2c7445b9cc
1 changed files with 3 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue