meson: use find_library() on compiler object
authorTim-Philipp Müller <tim@centricular.com>
Sun, 28 May 2017 18:13:04 +0000 (19:13 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 28 May 2017 18:13:04 +0000 (19:13 +0100)
The old stand-alone find_library() was deprecated.

meson.build

index a395848..a947f0e 100644 (file)
@@ -54,7 +54,7 @@ if cc.has_function('clock_gettime')
   cdata.set('HAVE_CLOCK_GETTIME', true)
 else
   # On glibc older than 2.17, clock_gettime is provided by time.h and -lrt
-  librt = find_library('rt', required : false)
+  librt = cc.find_library('rt', required : false)
   if librt.found() and cc.has_function('clock_gettime', dependencies : librt)
     pc_conf.set('LIBRT', '-lrt')
   endif