Merge pull request #660 from ffontaine/master

meson.build: fix static build
This commit is contained in:
Calvin Rose 2021-03-12 19:06:33 -06:00 committed by GitHub
commit d9419ef994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ dl_dep = cc.find_library('dl', required : false)
thread_dep = dependency('threads')
# Link options
if build_machine.system() != 'windows'
if get_option('default_library') != 'static' and build_machine.system() != 'windows'
add_project_link_arguments('-rdynamic', language : 'c')
endif