aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHazelFZ <xfzfygz@gmail.com>2019-03-04 17:43:22 +0800
committerNikolaus Rath <Nikolaus@rath.org>2019-03-04 09:43:22 +0000
commit06a31dece06792fd70fe2b4353f65df02f13549e (patch)
tree921cd11eec1692abd226ecf11d2088651627207b /lib
parent86ebe1d2dffdd160936992bf456eaa30de56567a (diff)
downloadlibfuse-06a31dece06792fd70fe2b4353f65df02f13549e.tar.gz
Link against libiconv when possible (#372)
Diffstat (limited to 'lib')
-rw-r--r--lib/meson.build6
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 ]