aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-09-25 10:23:38 +0100
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-09-25 10:23:38 +0100
commitb1a743c8eb8a5d665beb5675b5ba4ae66ffe8243 (patch)
treea97a6066ad8177239ca759083f85ff0f2e7fb63f
parentf750abb75715ff893dd05b8942b1216ff5467b36 (diff)
Link with -lrt to support ancient libc
Fixes: #207.
-rw-r--r--lib/meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/meson.build b/lib/meson.build
index 2379d9f..0a742ca 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -14,7 +14,7 @@ if cfg.get('HAVE_ICONV')
endif
deps = [ thread_dep ]
-libdl = meson.get_compiler('c').find_library('dl', required: false)
+libdl = cc.find_library('dl', required: false)
if libdl.found()
deps += [ libdl ]
endif
@@ -22,6 +22,9 @@ endif
if host_machine.system().startswith('netbsd')
deps += [ cc.find_library('perfuse'),
cc.find_library('puffs') ]
+else
+ # Required for clock_gettime before glibc 2.17
+ deps += cc.find_library('rt')
endif
fusermount_path = join_paths(get_option('prefix'), get_option('bindir'))