Skip to contentSkip to conversation

ffmpeg: fix build for xtensa

PATCH New Baruch Siach 2 participants 2 messages Dec 25, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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/

---
v2:
Use FFMPEG_CFLAGS as intermediate variable (Thomas Petazzoni)

---
 package/ffmpeg/ffmpeg.mk | 8 ++++++++
 1 file changed, 8 insertions(+)
package/ffmpeg/ffmpeg.mk +8 -0
index 6685110..f1fc920 100644
@@ -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
Signature · 1 line
1.8.5.1
#1 lore raw

PATCH v2 1/1 ffmpeg: fix build for xtensa

Dear Baruch Siach,

Quoted 7 lines · Baruch Siach

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/

Quoted 7 lines

---
v2:
Use FFMPEG_CFLAGS as intermediate variable (Thomas Petazzoni)

---
 package/ffmpeg/ffmpeg.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com