[vlc-devel] [PATCH] src: Makefile.am: link to android_support on android
Alexandre Janniaux
ajanni at videolabs.io
Mon Feb 17 22:22:59 CET 2020
Hi,
Actually it seems wrong on aarch64 and there are different ways now.
Please discard this patch, but I'm interested in whether this should
be in configure.ac or Makefile.am.
Regards,
--
Alexandre Janniaux
Videolabs
On Thu, Feb 13, 2020 at 03:57:29PM +0100, Alexandre Janniaux wrote:
> libvlccore needs functions like newlocale, which are available through
> the -landroid_support link flag. As it also depends upon C++ runtime
> libraries, especially for operator new and delete, link -lc++abi too.
> ---
> src/Makefile.am | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/Makefile.am b/src/Makefile.am
> index b6c5996837..d5035c5700 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -395,6 +395,12 @@ libvlccore_la_LIBADD = $(LIBS_libvlccore) \
> $(LTLIBINTL) $(LTLIBICONV) \
> $(IDN_LIBS) $(SOCKET_LIBS) $(LIBRT) $(LIBDL) $(LIBM)
>
> +if HAVE_ANDROID
> +# Android support exports newlocale, but it's written in C++
> +# with calls to operator new/delete.
> +libvlccore_la_LIBADD += -landroid_support -lc++abi
> +endif
> +
> if HAVE_WIN32
> libvlccore_la_SOURCES += \
> win32/dirs.c \
> --
> 2.25.0
>
More information about the vlc-devel
mailing list