[Android] Build: add gnu-libstdc++ in EXTRA_LDFLAGS
Thomas Guillem
git at videolan.org
Thu Oct 2 18:53:47 CEST 2014
vlc-ports/android | branch: tv | Thomas Guillem <thomas.guillem at gmail.com> | Wed Oct 1 18:42:06 2014 +0200| [f8f5d43765bbfae0e2a9413bb2ca3062b00a8fb0] | committer: Geoffrey Métais
Build: add gnu-libstdc++ in EXTRA_LDFLAGS
fix protobuf build.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=f8f5d43765bbfae0e2a9413bb2ca3062b00a8fb0
---
compile.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/compile.sh b/compile.sh
index de5c7e6..e30210d 100755
--- a/compile.sh
+++ b/compile.sh
@@ -165,6 +165,9 @@ EXTRA_CFLAGS="${EXTRA_CFLAGS} -O2"
EXTRA_CFLAGS="${EXTRA_CFLAGS} -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++${CXXSTL}/include"
EXTRA_CFLAGS="${EXTRA_CFLAGS} -I${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++${CXXSTL}/libs/${ANDROID_ABI}/include"
+# Setup LDFLAGS
+EXTRA_LDFLAGS="-l${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++${CXXSTL}/libs/${ANDROID_ABI}/libgnustl_static.a"
+
# Make in //
UNAMES=$(uname -s)
MAKEFLAGS=
@@ -248,7 +251,9 @@ else
fi
echo "EXTRA_CFLAGS= -g ${EXTRA_CFLAGS}" >> config.mak
+echo "EXTRA_LDFLAGS= ${EXTRA_LDFLAGS}" >> config.mak
export VLC_EXTRA_CFLAGS="${EXTRA_CFLAGS}"
+export VLC_EXTRA_LDFLAGS="${EXTRA_LDFLAGS}"
make fetch
# We already have zlib available
More information about the Android
mailing list