summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2014-01-20 10:33:40 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2014-01-20 21:23:37 (GMT)
commit7e558aa0d87d86be1bbc91b284acd0d11378ee4e (patch)
treec5e68a8b00bfe9030491e7a5462b63b36f1c4662
parent8e12b490f8787ae02b851f4fba7e028baa9ea1b0 (diff)
downloadbuildroot-7e558aa0d87d86be1bbc91b284acd0d11378ee4e.tar.gz
buildroot-7e558aa0d87d86be1bbc91b284acd0d11378ee4e.tar.bz2
gst-ffmpeg: fix build for xtensa
Since commit 6ea49a23df3 (gst-ffmpeg: Use internal libav instead of external ffmpeg) gst-ffmpge uses its internal libav. This requires the same fix for xtensa like ffmpeg got in commit 4ec35e76b8a3 (ffmpeg: fix build for xtensa). Fixes http://autobuild.buildroot.net/results/08a/08a27891fd5336250f00e611a15ea45505985f67/. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk b/package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk
index 6534f93..eb7389f 100644
--- a/package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk
+++ b/package/gstreamer/gst-ffmpeg/gst-ffmpeg.mk
@@ -14,6 +14,14 @@ GST_FFMPEG_CONF_EXTRA_OPT = \
--cross-prefix=$(TARGET_CROSS) \
--target-os=linux
+GST_FFMPEG_CFLAGS = $(TARGET_CFLAGS)
+
+ifeq ($(BR2_xtensa),y)
+GST_FFMPEG_CFLAGS += -mtext-section-literals
+endif
+
+GST_FFMPEG_CONF_ENV = CFLAGS="$(GST_FFMPEG_CFLAGS)"
+
ifeq ($(BR2_PACKAGE_ZLIB),y)
GST_FFMPEG_CONF_EXTRA_OPT += --enable-zlib
GST_FFMPEG_DEPENDENCIES += zlib