[vlc-devel] [PATCH] configure.ac: unbreak AM_ICONV tests with -lasan

Francois Cartegnie fcvlcdev at free.fr
Tue Nov 14 16:38:54 CET 2017


if -lasan needs to go through LDFLAGS because
of -zdefs then iconv test cannot survive again
---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index d78db537c5..5a2b5c5532 100644
--- a/configure.ac
+++ b/configure.ac
@@ -503,7 +503,10 @@ AM_GNU_GETTEXT([external], [need-formatstring-macros])
 dnl
 dnl Iconv stuff
 dnl
+VLC_SAVE_FLAGS
+LDFLAGS=`echo ${LDFLAGS}|sed 's/\(^| \)-lasan\( |\$\)//g'`
 AM_ICONV
+VLC_RESTORE_FLAGS
 
 dnl
 dnl checks for mingw
-- 
2.13.6



More information about the vlc-devel mailing list