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

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


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

contrib/gcrypt: fix compilation for iOS

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

 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