From 079e8d0f6c0794b15484eb581eff5fd9377c1d84 Mon Sep 17 00:00:00 2001 From: Chris Hiszpanski Date: Sun, 20 Sep 2020 04:57:12 -0700 Subject: [PATCH] Add libiconv dep to meson build --- meson.build | 2 ++ src/meson.build | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 3880d45..a35e5a9 100644 --- a/meson.build +++ b/meson.build @@ -27,6 +27,7 @@ libidn2_dep = notfound libicu_dep = notfound libidn_dep = notfound libunistring = notfound +libiconv = notfound networking_deps = notfound # FIXME: Cleanup this when Meson gets 'feature-combo': @@ -94,6 +95,7 @@ endif if libidn2_dep.found() or libidn_dep.found() # Check for libunistring, we need it for psl_str_to_utf8lower() libunistring = cc.find_library('unistring') + libiconv = cc.find_library('libiconv') endif if host_machine.system() == 'windows' diff --git a/src/meson.build b/src/meson.build index 0d1dcdf..2ee1c5f 100644 --- a/src/meson.build +++ b/src/meson.build @@ -19,7 +19,7 @@ cargs = [ libpsl = library('psl', sources, suffixes_dafsa_h, include_directories : [configinc, includedir], c_args : cargs, - dependencies : [libidn2_dep, libidn_dep, libicu_dep, libunistring, networking_deps], + dependencies : [libidn2_dep, libidn_dep, libicu_dep, libunistring, networking_deps, libiconv], version: lt_version, install: true, )