summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-09-07 11:51:40 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-09-07 12:01:31 +0200
commitd4f657a45ed77ca696dcb43b5d5dfd68a590734f (patch)
treee21c84f6c4e28059d6c4fae8f4d7303cf08ba246
parent2c766c9f47f0667936b1e562020dea3de27b1daa (diff)
hls: fix link in android
-rw-r--r--configure.ac10
-rw-r--r--gst/hls/Makefile.am2
2 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e6e782f08..05a98ab2f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -449,6 +449,16 @@ if test "x$HAVE_PTHREAD_H" != "xyes"; then
AG_GST_DISABLE_PLUGIN(dccp)
fi
+dnl link to -lm in android for isfinite() in HLS
+case "$host" in
+ *-*android*)
+ HLS_LIBS="$HLS_LIBS -lm"
+ AC_SUBST(HLS_LIBS)
+ ;;
+ *)
+ ;;
+esac
+
dnl *** sys plug-ins ***
dnl DirectSound
diff --git a/gst/hls/Makefile.am b/gst/hls/Makefile.am
index a84daeaaa..566d8027e 100644
--- a/gst/hls/Makefile.am
+++ b/gst/hls/Makefile.am
@@ -9,7 +9,7 @@ libgstfragmented_la_SOURCES = \
gstfragmentedplugin.c
libgstfragmented_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) $(SOUP_CFLAGS)
-libgstfragmented_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(SOUP_LIBS)
+libgstfragmented_la_LIBADD = $(GST_LIBS) $(GST_BASE_LIBS) $(SOUP_LIBS) $(HLS_LIBS)
libgstfragmented_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) -no-undefined
if !GST_PLUGIN_BUILD_STATIC
libgstfragmented_la_LIBTOOLFLAGS = --tag=disable-static