[vlc-commits] live555: add needed flags for android

Rafaël Carré git at videolan.org
Mon Jan 23 11:08:14 CET 2012


vlc/vlc-1.2 | branch: master | Rafaël Carré <funman at videolan.org> | Sun Jan 22 04:15:57 2012 -0500| [9dea2c6c32b5e17c956bbbb199518ca37fbacbf9] | committer: Jean-Baptiste Kempf

live555: add needed flags for android
(cherry picked from commit 510ceaa45837d38361ca0fcced9bbd0f009d0352)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 contrib/src/live555/rules.mak |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/contrib/src/live555/rules.mak b/contrib/src/live555/rules.mak
index 0507878..be0c2b2 100644
--- a/contrib/src/live555/rules.mak
+++ b/contrib/src/live555/rules.mak
@@ -29,9 +29,6 @@ live555: $(LIVE555_FILE) .sum-live555
 	rm -Rf live
 	$(UNPACK)
 	chmod -R u+w live
-ifdef HAVE_ANDROID
-	patch -p0 < $(SRC)/live555/android.patch
-endif
 ifdef HAVE_WINCE
 	cd live && sed -e 's/-lws2_32/-lws2/g' -i.orig config.mingw
 endif
@@ -43,6 +40,10 @@ endif
 		-e 's%$(CXX)%$(CXX)\ $(EXTRA_LDFLAGS)%' \
 		-i.orig config.macosx
 	cd live && sed -e 's%-D_FILE_OFFSET_BITS=64%-D_FILE_OFFSET_BITS=64\ -fPIC\ -DPIC%' -i.orig config.linux
+ifdef HAVE_ANDROID
+	cd live && sed -e 's%-DPIC%-DPIC -DNO_SSTREAM=1 -DLOCALE_NOT_USED -I$(ANDROID_NDK)/platforms/android-9/arch-arm/usr/include%' -i.orig config.linux
+	patch -p0 < $(SRC)/live555/android.patch
+endif
 	mv live $@
 	touch $@
 



More information about the vlc-commits mailing list