build: strip symbols

After the clang toolchain switch symbols of libring.so were not stripped
anymore, increasing drastically the binary size.
The '-s' build parameter has been readded. The final apk now weights
around 22Mo.

Change-Id: I4dbdf4f98989b42dc21267f09747d59368406a9d
Tuleap: #1194
diff --git a/build-daemon.sh b/build-daemon.sh
index b4fc518..112348b 100755
--- a/build-daemon.sh
+++ b/build-daemon.sh
@@ -172,6 +172,9 @@
 [ ${ANDROID_ABI} = "armeabi-v7a" ] && echo "NOTHUMB := -marm" >> config.mak
 [ ${ANDROID_ABI} = "armeabi-v7a-hard" ] && echo "NOTHUMB := -marm" >> config.mak
 
+# Always strip symbols for libring.so remove it if you want to debug the daemon
+STRIP_ARG="-s "
+
 EXTRA_CFLAGS="${EXTRA_CFLAGS} -DNDEBUG "
 if [ "${RELEASE}" -eq 1 ]; then
     echo "Contribs in release mode."
@@ -263,6 +266,6 @@
                                         ${RING_BUILD_DIR}/src/.libs/libring.a \
                                         -static-libstdc++ \
                                         -I${RING_SRC_DIR}/src -L${RING_SRC_DIR}/contrib/${TARGET_TUPLE}/lib \
-                                        --std=c++11 \
+                                        ${STRIP_ARG} --std=c++11 \
                                         ${STATIC_LIBS_ALL} \
                                         -o ${LIBRING_JNI_DIR}/libring.so