]> code.ossystems Code Review - meta-freescale.git/blob
9f3410d7d298ffa73baa4eb56244472db7f5ff23
[meta-freescale.git] /
1 From d11884c88eac803c174f759414d0162154450b6a Mon Sep 17 00:00:00 2001
2 From: Andrey Zhizhikin <andrey.z@gmail.com>
3 Date: Thu, 2 Sep 2021 09:43:33 +0000
4 Subject: [PATCH] dlsym: workaround glibc 2.34 build failure
5
6 As suggested in [1], upstream component does not have a solution for the
7 issue, and therefore for glibc version >= 2.34 dlsym wrappers should be
8 skipped.
9
10 Link: [1]: https://github.com/apitrace/apitrace/issues/756
11
12 Upstream-Status: Pending
13 Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
14 ---
15  wrappers/dlsym.cpp | 2 +-
16  1 file changed, 1 insertion(+), 1 deletion(-)
17
18 diff --git a/wrappers/dlsym.cpp b/wrappers/dlsym.cpp
19 index cdf5cfdb..4061afc4 100644
20 --- a/wrappers/dlsym.cpp
21 +++ b/wrappers/dlsym.cpp
22 @@ -34,7 +34,7 @@
23  #include "os.hpp"
24  
25  
26 -#ifdef __GLIBC__
27 +#if defined(__GLIBC__) && !(__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34)
28  
29  
30  #include <dlfcn.h>
31 -- 
32 2.17.1
33