From 4ff664a3eb7542826f56cf941b7e9d5c080ceffc Mon Sep 17 00:00:00 2001 From: Greg V Date: Fri, 3 Apr 2020 18:51:59 +0300 Subject: build-sys: meson: when libc iconv is used, tell libiconv header to pretend to be libc's iconv The libiconv header on FreeBSD would be preferred by include path, but we don't want to link to libiconv, so tell its header to act like the system header. Part-of: --- meson.build | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 38d56bafb..51ef84486 100644 --- a/meson.build +++ b/meson.build @@ -439,6 +439,8 @@ have_iconv = false if cc.has_function('iconv_open') iconv_dep = dependency('', required : false) have_iconv = true + # tell the libiconv header to pretend to be libc iconv + cdata.set('LIBICONV_PLUG', 1) else iconv_dep = cc.find_library('iconv', required : false) have_iconv = iconv_dep.found() -- cgit v1.2.3