[vlc-devel] [PATCH 3/3] live555: add needed flags for android
Rafaël Carré
funman at videolan.org
Sun Jan 22 10:15:57 CET 2012
---
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 $@
--
1.7.8.3
More information about the vlc-devel
mailing list