libxcb: Add a workaround for gcc5 bug on mips

This fixes build failure for libxcb on mips

(From OE-Core rev: cad52140997e86c6fee4938369dfce21767f1a63)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj 2015-12-21 01:42:02 +00:00 committed by Richard Purdie
parent 86c8b8b82e
commit 937b7fd447
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,22 @@
Reduce debug info for xcb.c since on mips we run into a gcc5 bug
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68302
This patch is a workaround to get past the gcc bug until its resolved.
it should have minimal impact on libxcb while make it work.
Upstream-Status: Inappropriate [OE-Specific]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Index: libxcb-1.11.1/src/Makefile.am
===================================================================
--- libxcb-1.11.1.orig/src/Makefile.am
+++ libxcb-1.11.1/src/Makefile.am
@@ -188,6 +188,7 @@ EXTSOURCES += xkb.c
if BUILD_XKB
lib_LTLIBRARIES += libxcb-xkb.la
libxcb_xkb_la_LDFLAGS = -version-info 1:0:0 -no-undefined
+CFLAGS += -g1
libxcb_xkb_la_LIBADD = $(XCB_LIBS)
nodist_libxcb_xkb_la_SOURCES = xkb.c xkb.h
endif

View File

@ -11,7 +11,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7"
SRC_URI = "http://xcb.freedesktop.org/dist/libxcb-${PV}.tar.bz2 \
file://xcbincludedir.patch \
file://disable-check.patch"
file://disable-check.patch \
file://gcc-mips-pr68302-mips-workaround.patch \
"
SRC_URI[md5sum] = "f97a65e6158775de518ac391935634c2"
SRC_URI[sha256sum] = "b720fd6c7d200e5371affdb3f049cc8f88cff9aed942ff1b824d95eedbf69d30"