mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
meson: Don't export symbols from linked static libraries
We don't want to export any symbols from the ffmpeg static libraries we link to when building inside Cerbero. In the Autotools build, we pass -export-symbols-regex to libtool which ensures this for us.
This commit is contained in:
parent
46cc79c43a
commit
50311411f4
1 changed files with 5 additions and 0 deletions
|
@ -118,6 +118,11 @@ if cc.has_argument('-fvisibility=hidden')
|
|||
add_project_arguments('-fvisibility=hidden', language: 'c')
|
||||
endif
|
||||
|
||||
# Don't export any symbols from static ffmpeg libraries
|
||||
if cc.has_link_argument('-Wl,--exclude-libs=ALL')
|
||||
add_project_link_arguments('-Wl,--exclude-libs=ALL', language: 'c')
|
||||
endif
|
||||
|
||||
# Disable strict aliasing
|
||||
if cc.has_argument('-fno-strict-aliasing')
|
||||
add_project_arguments('-fno-strict-aliasing', language: 'c')
|
||||
|
|
Loading…
Reference in a new issue