mirror of
https://github.com/videolan/vlc.git
synced 2024-11-27 11:57:03 +08:00
meson: check for -Wl,-Bsymbolic
This commit is contained in:
parent
c2e305c5c4
commit
33fdb81100
@ -791,6 +791,12 @@ add_project_arguments(
|
||||
cc.get_supported_arguments('-fvisibility=hidden'),
|
||||
language: ['c'])
|
||||
|
||||
# Check if linker supports -Bsymbolic
|
||||
symbolic_linkargs = []
|
||||
if cc.has_link_argument('-Wl,-Bsymbolic')
|
||||
symbolic_linkargs += '-Wl,-Bsymbolic'
|
||||
endif
|
||||
|
||||
# Check for struct sockaddr_storage type
|
||||
# Define it to `sockaddr` if missing
|
||||
have_sockaddr_storage = cc.has_type('struct sockaddr_storage', prefix: '#include <sys/socket.h>')
|
||||
|
Loading…
Reference in New Issue
Block a user