mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
pulseaudio: fix compilation with ICONV_FULL
Reordered check to check external iconv first. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -380,12 +380,11 @@ if dl_dep.found()
|
||||
endif
|
||||
|
||||
have_iconv = false
|
||||
-if cc.has_function('iconv_open')
|
||||
+iconv_dep = cc.find_library('iconv', required : false)
|
||||
+have_iconv = iconv_dep.found()
|
||||
+if not have_iconv and cc.has_function('iconv_open')
|
||||
iconv_dep = dependency('', required : false)
|
||||
have_iconv = true
|
||||
-else
|
||||
- iconv_dep = cc.find_library('iconv', required : false)
|
||||
- have_iconv = iconv_dep.found()
|
||||
endif
|
||||
if have_iconv
|
||||
cdata.set('HAVE_ICONV', 1)
|
||||
Reference in New Issue
Block a user