build: Check threads dependency instead of pthread 66/325566/2
authorSeunghun Lee <shiin.lee@samsung.com>
Thu, 12 Jun 2025 03:22:19 +0000 (12:22 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 12 Jun 2025 06:34:44 +0000 (06:34 +0000)
This commit updates the dependency check to use the threads dependency,
which is the recommended way by Meson.

For more information, see: https://mesonbuild.com/FAQ.html

Change-Id: I0cc5d29338c6fc113ab42c2791f40534bc19bcc7

src/bin/meson.build

index 47115204e21e248c116283da6c737c6618e053dc..457d9566daac9f7b9f43b6222d720e728caf5f48 100644 (file)
@@ -99,7 +99,7 @@ endif
 deps_e = [
   cc.find_library('rt', required: false),
   cc.find_library('m', required: false),
-  cc.find_library('pthread', required: true),
+  dependency('threads', required: true),
   dependency('libtbm', required: true),
   dependency('libtdm', version: '>=1.0.0', required: true),
   dependency('glib-2.0', required: true),