[vlc-commits] contrib/gcrypt: fix compilation for iOS

Felix Paul Kühne git at videolan.org
Wed Oct 30 20:21:22 CET 2013


vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Oct 30 20:03:42 2013 +0100| [e825752a9430fd27ef30881e1234009b07fed4fe] | committer: Felix Paul Kühne

contrib/gcrypt: fix compilation for iOS

(cherry picked from commit 7ee26699aaff95f48b6c62ca72f9fa5899cd1829)

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

 contrib/src/gcrypt/rules.mak |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/contrib/src/gcrypt/rules.mak b/contrib/src/gcrypt/rules.mak
index 31b930e..38c96b5 100644
--- a/contrib/src/gcrypt/rules.mak
+++ b/contrib/src/gcrypt/rules.mak
@@ -22,6 +22,11 @@ GCRYPT_CONF = \
 ifdef HAVE_WIN64
 GCRYPT_CONF += --disable-asm
 endif
+ifdef HAVE_IOS
+GCRYPT_EXTRA_CFLAGS = -fheinous-gnu-extensions
+else
+GCRYPT_EXTRA_CFLAGS =
+endif
 ifdef HAVE_MACOSX
 GCRYPT_CONF += --disable-aesni-support
 else
@@ -37,6 +42,6 @@ endif
 
 .gcrypt: libgcrypt
 	#$(RECONF)
-	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(GCRYPT_CONF)
+	cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) $(GCRYPT_EXTRA_CFLAGS)" ./configure $(HOSTCONF) $(GCRYPT_CONF)
 	cd $< && $(MAKE) install
 	touch $@



More information about the vlc-commits mailing list