projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84ce28d
)
meson: use find_library() on compiler object
author
Tim-Philipp Müller
<tim@centricular.com>
Sun, 28 May 2017 18:13:04 +0000
(19:13 +0100)
committer
Tim-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
patch
|
blob
|
history
diff --git
a/meson.build
b/meson.build
index
a395848
..
a947f0e
100644
(file)
--- a/
meson.build
+++ b/
meson.build
@@
-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