[vlc-commits] [Git][videolan/vlc][master] meson: don't consider winpthread as a runtime library on Windows

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Nov 19 08:13:38 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
bee0a17a by Steve Lhomme at 2024-11-19T07:41:45+00:00
meson: don't consider winpthread as a runtime library on Windows

We don't use it unless it's forced by a contrib.
It detects some clock API that are only available with winpthread.
If a contrib uses it, it should provide the link with pthread.

- - - - -


1 changed file:

- meson.build


Changes:

=====================================
meson.build
=====================================
@@ -525,7 +525,10 @@ add_project_arguments(cc.first_supported_argument(['-Werror-implicit-function-de
 # Check if other libs are needed
 #
 rt_lib = []
-possible_rt_libs = ['rt', 'pthread']
+possible_rt_libs = ['rt']
+if host_system != 'windows'
+    possible_rt_libs += ['pthread']
+endif
 foreach l : possible_rt_libs
     possible_rt_lib_lib = cc.find_library(l, required: false)
     if possible_rt_lib_lib.found() and \



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bee0a17a3efa76723418b659b94f6880b2b304c3

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/bee0a17a3efa76723418b659b94f6880b2b304c3
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list