summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-09-15 14:22:49 +0200
committerTanu Kaskinen <tanuk@iki.fi>2019-09-25 04:42:03 +0000
commitbff163089c5cd629116391cde55f55c73f422d10 (patch)
tree13b7d9ab64f80b498364e9aa2300778bd179f611 /meson.build
parentd72a3a5eca7e43c24fe16f5b2ed493ae1d12720f (diff)
meson: link libintl if it's not provided by libc
This fixes the build on musl with external gettext
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index a10a1b3c8..59cba00cb 100644
--- a/meson.build
+++ b/meson.build
@@ -296,6 +296,12 @@ if cc.has_function('SYS_memfd_create', prefix : '#include <sys/syscall.h>')
cdata.set('HAVE_MEMFD', 1)
endif
+if cc.has_function('dgettext')
+ libintl_dep = []
+else
+ libintl_dep = cc.find_library('intl')
+endif
+
# Symbols
if cc.has_header_symbol('signal.h', 'SIGXCPU')