Skip to content

Commit

Permalink
meson: link the library with '-Wl,-Bsymbolic'
Browse files Browse the repository at this point in the history
Change-Id: I2496bc42192ad65135c781476f6f5d4bcc795d19
  • Loading branch information
H5117 committed Dec 20, 2021
1 parent 884549c commit 21c8feb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 3 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,12 @@ add_project_arguments('-DHAVE_CONFIG_H', language: 'c')
#################################################
# Build targets
#################################################
add_project_arguments('-DRING_BUILD', language: 'cpp')
add_project_arguments('-DRING_BUILD', language: 'c')
add_project_arguments('-DRING_BUILD', language: ['c', 'cpp'])
if get_option('default_library') != 'static'
add_project_arguments('-Djami_EXPORTS', language: 'cpp')
add_project_arguments('-Djami_EXPORTS', language: 'c')
add_project_arguments('-Djami_EXPORTS', language: ['c', 'cpp'])
endif

add_project_arguments('-DASIO_STANDALONE', language: 'cpp')
add_project_arguments('-DASIO_STANDALONE', language: 'c')
add_project_arguments('-DASIO_STANDALONE', language: ['c', 'cpp'])

subdir('src')

Expand Down
8 changes: 7 additions & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ libjami_includedirs = include_directories(
)

libjami_sources = files(
'client/videomanager.cpp',
'client/callmanager.cpp',
'client/configurationmanager.cpp',
'client/conversation_interface.cpp',
'client/datatransfer.cpp',
'client/presencemanager.cpp',
'client/ring_signal.cpp',
'client/videomanager.cpp',
'config/yamlparser.cpp',
'im/instant_messaging.cpp',
'im/message_engine.cpp',
Expand Down Expand Up @@ -308,11 +308,17 @@ if conf.get('ENABLE_PLUGIN')
libjami_dependencies += depdl
endif

# https://ffmpeg.org/platform.html#Advanced-linking-configuration
libjami_linkargs = meson.get_compiler('cpp').get_supported_link_arguments(
'-Wl,-Bsymbolic'
)

libjami = library('jami',
version: meson.project_version(),
include_directories: libjami_includedirs,
sources: libjami_sources,
dependencies: libjami_dependencies,
link_args: libjami_linkargs,
install: get_option('interfaces').contains('library')
)

Expand Down

0 comments on commit 21c8feb

Please sign in to comment.