[vlc-commits] contribs: Fix iconv build when using gcc 5.x

Hugo Beauzée-Luyssen git at videolan.org
Mon Jan 4 16:23:01 CET 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Jan  4 16:07:54 2016 +0100| [ba25882ce80553dc098f41d39cada8eaf9587f32] | committer: Hugo Beauzée-Luyssen

contribs: Fix iconv build when using gcc 5.x

GCC 5.x defaults to -std=gnu11, which changes the __inline keyword
semantics, causing some iconv functions not to be inlined, but they are
not declared as exported, thus causing linking to iconv to fail

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba25882ce80553dc098f41d39cada8eaf9587f32
---

 contrib/src/iconv/rules.mak |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/src/iconv/rules.mak b/contrib/src/iconv/rules.mak
index 0aea528..386cc00 100644
--- a/contrib/src/iconv/rules.mak
+++ b/contrib/src/iconv/rules.mak
@@ -33,6 +33,6 @@ endif
 	$(MOVE)
 
 .iconv: iconv
-	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-nls
+	cd $< && $(HOSTVARS) ./configure CFLAGS="$(CFLAGS) -fgnu89-inline" $(HOSTCONF) --disable-nls
 	cd $< && $(MAKE) install
 	touch $@



More information about the vlc-commits mailing list