Skip to contentSkip to conversation

gstreamer: Better gcc 4.9 fix

PATCH In review Richard Purdie 2 participants 2 messages May 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gstreamer: Better gcc 4.9 fix

gstreamer does runtime detection to enable/disable things like SSE code. Unfortunately it is broken and will try and use this even with i586 compiler flags. This change forces it back to the approach with gcc 4.8 by disabling the problematic headers.

Its suboptimal but less so that the proposed previous forced enabling of SSE on x86 everywhere.

---

meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb +2 -0
index 83b856b..4a8a994 100644
@@ -33,3 +33,5 @@ do_configure_prepend() {
 }
 
 FILES_${PN} += "${datadir}/${BPN}"
+
+CACHED_CONFIGUREVARS_append_i586 = " ac_cv_header_emmintrin_h=no ac_cv_header_xmmintrin_h=no"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base.inc +1 -0
index eb13277..1691c99 100644
@@ -37,3 +37,4 @@ EXTRA_OECONF += " \
 
 FILES_${PN} += "${datadir}/gst-plugins-base"
 
+CACHED_CONFIGUREVARS_append_i586 = " ac_cv_header_emmintrin_h=no ac_cv_header_xmmintrin_h=no"
#1 lore raw
Quoted 4 lines · Richard Purdie

gstreamer does runtime detection to enable/disable things like SSE code. Unfortunately it is broken and will try and use this even with i586 compiler flags. This change forces it back to the approach with gcc 4.8 by disabling the problematic headers.

I think patch is safer.

Quoted 32 lines

Its suboptimal but less so that the proposed previous forced enabling of SSE on x86 everywhere.

---

meta/recipes-multimedia/gstreamer/gst-plugins-base_0.10.36.bb +2 -0
index 83b856b..4a8a994 100644
@@ -33,3 +33,5 @@ do_configure_prepend() {
 }
 
 FILES_${PN} += "${datadir}/${BPN}"
+
+CACHED_CONFIGUREVARS_append_i586 = " ac_cv_header_emmintrin_h=no ac_cv_header_xmmintrin_h=no"
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base.inc +1 -1
index eb13277..1691c99 100644
@@ -37,3 +37,4 @@ EXTRA_OECONF += " \
 
 FILES_${PN} += "${datadir}/gst-plugins-base"
 
+CACHED_CONFIGUREVARS_append_i586 = " ac_cv_header_emmintrin_h=no ac_cv_header_xmmintrin_h=no"
 
 
--

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core