[FFmpeg-devel] [PATCH] configure: prefer to use -liconv when possible

Rodger Combs rodger.combs at gmail.com
Tue Jan 26 05:37:49 CET 2016


OSX's ld sometimes does and sometimes doesn't need -liconv.
For instance, -Wl,-dead_strip in LDFLAGS will make the iconv conf check pass
without -liconv, but linking ffmpeg_g will fail. There are likely other awkward
interactions that could cause that sort of issue. Thus, we'll try to use the
-liconv arg and fallback on not using it, rather than the other way around.
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index e5cd88e..0d4d7cb 100755
--- a/configure
+++ b/configure
@@ -5773,7 +5773,7 @@ enabled vdpau && enabled xlib &&
     enable vdpau_x11
 
 # Funny iconv installations are not unusual, so check it after all flags have been set
-disabled iconv || check_func_headers iconv.h iconv || check_lib2 iconv.h iconv -liconv || disable iconv
+disabled iconv || check_func_headers iconv.h iconv -liconv || check_lib2 iconv.h iconv || disable iconv
 
 enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
 
-- 
2.7.0



More information about the ffmpeg-devel mailing list