[Android] Remove GCCVER export

Jean-Baptiste Kempf git at videolan.org
Thu Feb 5 17:34:38 CET 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Feb  5 17:13:23 2015 +0100| [ac010a59c60392387bb1c3f9312a927929a3cd0e] | committer: Jean-Baptiste Kempf

Remove GCCVER export

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

 compile-libvlc.sh     |    1 +
 compile.sh            |    4 +---
 libvlc/jni/Android.mk |    4 +---
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index 94bd476..d06ff2e 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -484,6 +484,7 @@ $ANDROID_NDK/ndk-build -C libvlc \
     VLC_CONTRIB="$VLC_CONTRIB" \
     VLC_MODULES="$VLC_MODULES" \
     TARGET_CFLAGS="$VLC_EXTRA_CFLAGS" \
+    EXTRA_LDFLAGS="$EXTRA_LDFLAGS" \
     LIBVLC_LIBS="$LIBVLC_LIBS" \
     APP_BUILD_SCRIPT=jni/Android.mk \
     APP_PLATFORM=${ANDROID_API} \
diff --git a/compile.sh b/compile.sh
index a07c652..6919915 100755
--- a/compile.sh
+++ b/compile.sh
@@ -91,7 +91,6 @@ case "$REL" in
     ;;
 esac
 
-export GCCVER            # Android.mk
 export ANDROID_API       # Android.mk for -21
 
 export TARGET_TUPLE      # Makefile for android-libs
@@ -168,7 +167,7 @@ export ANDROID_SYS_HEADERS=${PWD}/android-headers           # Android.mk
 export ANDROID_LIBS=${PWD}/android-libs                     # Android.mk
 export VLC_BUILD_DIR=vlc/build-android-${TARGET_TUPLE}      # Android.mk
 
-make -j1 TARGET_TUPLE=$TARGET_TUPLE GCCVER=$GCCVER RELEASE=$RELEASE $TARGET
+make -j1 TARGET_TUPLE=$TARGET_TUPLE RELEASE=$RELEASE $TARGET
 
 #
 # Exporting a environment script with all the necessary variables
@@ -200,7 +199,6 @@ export ANDROID_SDK=$ANDROID_SDK
 export ANDROID_NDK=$ANDROID_NDK
 export ANDROID_ABI=$ANDROID_ABI
 export ANDROID_API=$ANDROID_API
-export GCCVER=$GCCVER
 export ANDROID_SYS_HEADERS=$ANDROID_SYS_HEADERS
 export ANDROID_LIBS=$ANDROID_LIBS
 export VLC_BUILD_DIR=$VLC_BUILD_DIR
diff --git a/libvlc/jni/Android.mk b/libvlc/jni/Android.mk
index 1d9b8bc..8ea6a57 100644
--- a/libvlc/jni/Android.mk
+++ b/libvlc/jni/Android.mk
@@ -51,8 +51,6 @@ LOCAL_C_INCLUDES := $(VLC_SRC_DIR)/include
 
 ARCH=$(ANDROID_ABI)
 
-CPP_STATIC=$(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/$(GCCVER)/libs/$(ARCH)/libgnustl_static.a
-
 LOCAL_CFLAGS := -std=gnu99
 ifeq ($(ARCH), armeabi)
 	LOCAL_CFLAGS += -DHAVE_ARMEABI
@@ -86,7 +84,7 @@ LOCAL_LDLIBS := -L$(VLC_CONTRIB)/lib \
 	-ldsm -ltasn1 \
 	-lmad \
 	-lzvbi \
-	$(CPP_STATIC)
+	$(EXTRA_LDFLAGS)
 
 ################
 # PRIVATE LIBS #



More information about the Android mailing list