mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
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: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
This commit is contained in:
parent
42a9254891
commit
4ff664a3eb
1 changed files with 2 additions and 0 deletions
|
|
@ -439,6 +439,8 @@ have_iconv = false
|
||||||
if cc.has_function('iconv_open')
|
if cc.has_function('iconv_open')
|
||||||
iconv_dep = dependency('', required : false)
|
iconv_dep = dependency('', required : false)
|
||||||
have_iconv = true
|
have_iconv = true
|
||||||
|
# tell the libiconv header to pretend to be libc iconv
|
||||||
|
cdata.set('LIBICONV_PLUG', 1)
|
||||||
else
|
else
|
||||||
iconv_dep = cc.find_library('iconv', required : false)
|
iconv_dep = cc.find_library('iconv', required : false)
|
||||||
have_iconv = iconv_dep.found()
|
have_iconv = iconv_dep.found()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue