diff options
author | HazelFZ <xfzfygz@gmail.com> | 2019-03-04 17:43:22 +0800 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2019-03-04 09:43:22 +0000 |
commit | 06a31dece06792fd70fe2b4353f65df02f13549e (patch) | |
tree | 921cd11eec1692abd226ecf11d2088651627207b /lib/meson.build | |
parent | 86ebe1d2dffdd160936992bf456eaa30de56567a (diff) | |
download | libfuse-06a31dece06792fd70fe2b4353f65df02f13549e.tar.gz |
Link against libiconv when possible (#372)
Diffstat (limited to 'lib/meson.build')
-rw-r--r-- | lib/meson.build | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/meson.build b/lib/meson.build index 90ce5a4..e27feab 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -9,11 +9,15 @@ else libfuse_sources += [ 'mount_bsd.c' ] endif +deps = [ thread_dep ] if cfg.get('HAVE_ICONV') libfuse_sources += [ 'modules/iconv.c' ] + libiconv = cc.find_library('iconv', required: false) + if libiconv.found() + deps += [ libiconv ] + endif endif -deps = [ thread_dep ] libdl = cc.find_library('dl', required: false) if libdl.found() deps += [ libdl ] |