diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index f3010ccae055aee947ea8b6375bfd82ef6598e5d..86711993d4b09dfc297baff8b04adf4e0c520221 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -281,11 +281,10 @@ fi
 REL=$(grep -o '^r[0-9]*.*' $ANDROID_NDK/RELEASE.TXT 2>/dev/null|cut -b2-)
 case "$REL" in
     10*)
+        GCCVER=4.9
         if [ "${HAVE_64}" = 1 ];then
-            GCCVER=4.9
             ANDROID_API=android-21
         else
-            GCCVER=4.8
             ANDROID_API=android-9
         fi
     ;;