summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-08-13 17:58:31 -0700
committerKhem Raj <raj.khem@gmail.com>2020-08-13 22:37:48 -0700
commit7683c1a60642ad93248b2226f4aa2a59e8243063 (patch)
tree473e1d8843da74046dbeb616bda275dd32708970
parentfc2217f310e01debc28b3e4f29704a8434adbc17 (diff)
downloadmeta-openembedded-7683c1a60642ad93248b2226f4aa2a59e8243063.tar.gz
liblbxutil: Fix build with gcc10/-fno-common
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-graphics/xorg-lib/liblbxutil-1.1.0/0001-lbx_zlib-Mark-declration-with-extern.patch36
-rw-r--r--meta-oe/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb4
2 files changed, 39 insertions, 1 deletions
diff --git a/meta-oe/recipes-graphics/xorg-lib/liblbxutil-1.1.0/0001-lbx_zlib-Mark-declration-with-extern.patch b/meta-oe/recipes-graphics/xorg-lib/liblbxutil-1.1.0/0001-lbx_zlib-Mark-declration-with-extern.patch
new file mode 100644
index 0000000000..32a24b4be1
--- /dev/null
+++ b/meta-oe/recipes-graphics/xorg-lib/liblbxutil-1.1.0/0001-lbx_zlib-Mark-declration-with-extern.patch
@@ -0,0 +1,36 @@
1From 95ed4b743f197e20f1884a326d5a7128187a7ba6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 13 Aug 2020 17:56:30 -0700
4Subject: [PATCH] lbx_zlib: Mark declration with extern
5
6Fixes build with gcc10/-fno-common
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 src/lbx_zlib/lbx_zlib.h | 12 ++++++------
12 1 file changed, 6 insertions(+), 6 deletions(-)
13
14diff --git a/src/lbx_zlib/lbx_zlib.h b/src/lbx_zlib/lbx_zlib.h
15index 8ae8956..bec3b96 100644
16--- a/src/lbx_zlib/lbx_zlib.h
17+++ b/src/lbx_zlib/lbx_zlib.h
18@@ -136,9 +136,9 @@ extern void Xfree(pointer /*ptr*/);
19 #endif
20
21 /* lbx_zlib.c */
22-unsigned long stream_out_compressed;
23-unsigned long stream_out_uncompressed;
24-unsigned long stream_out_plain;
25-unsigned long stream_in_compressed;
26-unsigned long stream_in_uncompressed;
27-unsigned long stream_in_plain;
28+extern unsigned long stream_out_compressed;
29+extern unsigned long stream_out_uncompressed;
30+extern unsigned long stream_out_plain;
31+extern unsigned long stream_in_compressed;
32+extern unsigned long stream_in_uncompressed;
33+extern unsigned long stream_in_plain;
34--
352.28.0
36
diff --git a/meta-oe/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb b/meta-oe/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb
index 3e5c31a05d..58b4f31b17 100644
--- a/meta-oe/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb
+++ b/meta-oe/recipes-graphics/xorg-lib/liblbxutil_1.1.0.bb
@@ -7,7 +7,9 @@ DEPENDS += " xorgproto zlib"
7PE = "1" 7PE = "1"
8PR = "r11" 8PR = "r11"
9 9
10SRC_URI += "file://mkg3states-1.1.patch" 10SRC_URI += "file://mkg3states-1.1.patch \
11 file://0001-lbx_zlib-Mark-declration-with-extern.patch \
12 "
11SRC_URI[md5sum] = "273329a78c2e9ea189ac416c7fde94a1" 13SRC_URI[md5sum] = "273329a78c2e9ea189ac416c7fde94a1"
12SRC_URI[sha256sum] = "c6b6ff7858ec619cafa8205debca6bf78c5610a2844a782ed643c7fd017cf8ae" 14SRC_URI[sha256sum] = "c6b6ff7858ec619cafa8205debca6bf78c5610a2844a782ed643c7fd017cf8ae"
13 15