diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2021-04-07 16:08:24 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-18 11:37:25 +0100 |
commit | 8cf34c351772245f4f86c8b00cff3340ffef8e4e (patch) | |
tree | da4ab9abaff92ba887e3bfd91ca2d297e171d77a /meta/recipes-graphics/xorg-lib/libxshmfence_1.3.bb | |
parent | 91aa85099815eead5a6ac5f89ce1f97188aa5f28 (diff) | |
download | poky-8cf34c351772245f4f86c8b00cff3340ffef8e4e.tar.gz |
libxshmfence: Build fixes for riscv32
NR_futex is not defined by newer architectures e.g. riscv32 as
they only have 64bit variant of time_t. Glibc defines SYS_futex
interface based on __NR_futex, since this is used in applications,
such applications start to fail to build for these newer architectures.
Define a fallback to alias __NR_futex to __NR_futex_time64 to make
SYS_futex keep working.
Reference: https://git.openembedded.org/openembedded-core/commit/?id=7a218adf9990f5e18d0b6a33eb34091969f979c7
(From OE-Core rev: 81599bf32135187b34726d41e9f619d22ca1bdd1)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libxshmfence_1.3.bb')
-rw-r--r-- | meta/recipes-graphics/xorg-lib/libxshmfence_1.3.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libxshmfence_1.3.bb b/meta/recipes-graphics/xorg-lib/libxshmfence_1.3.bb index cc45696530..d153c7a603 100644 --- a/meta/recipes-graphics/xorg-lib/libxshmfence_1.3.bb +++ b/meta/recipes-graphics/xorg-lib/libxshmfence_1.3.bb | |||
@@ -13,7 +13,9 @@ DEPENDS += "virtual/libx11" | |||
13 | 13 | ||
14 | EXTRA_OECONF += "--with-shared-memory-dir=/dev/shm" | 14 | EXTRA_OECONF += "--with-shared-memory-dir=/dev/shm" |
15 | 15 | ||
16 | BBCLASSEXTEND = "native nativesdk" | 16 | SRC_URI += "file://0001-xshmfence_futex.h-Define-SYS_futex-if-it-does-not-ex.patch" |
17 | 17 | ||
18 | SRC_URI[md5sum] = "42dda8016943dc12aff2c03a036e0937" | 18 | SRC_URI[md5sum] = "42dda8016943dc12aff2c03a036e0937" |
19 | SRC_URI[sha256sum] = "b884300d26a14961a076fbebc762a39831cb75f92bed5ccf9836345b459220c7" | 19 | SRC_URI[sha256sum] = "b884300d26a14961a076fbebc762a39831cb75f92bed5ccf9836345b459220c7" |
20 | |||
21 | BBCLASSEXTEND = "native nativesdk" | ||