summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2013-12-25 09:24:18 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-25 11:28:20 (GMT)
commit4ec35e76b8a31810a0b8955a6dee787cefa013bc (patch)
tree43d69b8f2f8d5ccfdff48ca97e796f15b1b3dbe5
parent35eaed8d07bdc73a83990bc306fcdb08b2e70eaf (diff)
downloadbuildroot-4ec35e76b8a31810a0b8955a6dee787cefa013bc.tar.gz
buildroot-4ec35e76b8a31810a0b8955a6dee787cefa013bc.tar.bz2
ffmpeg: fix build for xtensa
The ffmpeg package generates libraries that are too large for the xtensa default placement of literals in a dedicated section. Use -mtext-section-literal to place literals in the text section. Fixes http://autobuild.buildroot.net/results/606/60670d35f16c3b8fe19debf7f8e40a046a579520/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/ffmpeg/ffmpeg.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
index 6685110..f1fc920 100644
--- a/package/ffmpeg/ffmpeg.mk
+++ b/package/ffmpeg/ffmpeg.mk
@@ -21,6 +21,14 @@ FFMPEG_CONF_OPT = \
--disable-avfilter \
$(if $(BR2_HAVE_DOCUMENTATION),,--disable-doc)
+FFMPEG_CFLAGS = $(TARGET_CFLAGS)
+
+ifeq ($(BR2_xtensa),y)
+FFMPEG_CFLAGS += -mtext-section-literals
+endif
+
+FFMPEG_CONF_ENV = CFLAGS="$(FFMPEG_CFLAGS)"
+
ifeq ($(BR2_PACKAGE_FFMPEG_GPL),y)
FFMPEG_CONF_OPT += --enable-gpl
else