[Android] Build: add gnu-libstdc++ in EXTRA_LDFLAGS
Tristan Matthews
le.businessman at gmail.com
Fri Oct 3 22:27:53 CEST 2014
On Thu, Oct 2, 2014 at 12:53 PM, Thomas Guillem <git at videolan.org> wrote:
> 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}"
>
Where is VLC_EXTRA_LDFLAGS used?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/android/attachments/20141003/f2dc95bd/attachment.html>
More information about the Android
mailing list