diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-12-23 14:53:38 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-30 08:47:12 +0000 |
commit | cbe0b1987b516d8b75fa9150cef9520a99947d13 (patch) | |
tree | 7a7f0f74798ef37f9fa83ecde0f917f7b99af282 /meta/recipes-devtools/valgrind/valgrind | |
parent | c93e95482627a69c383686da3d568c7599f98e54 (diff) | |
download | poky-cbe0b1987b516d8b75fa9150cef9520a99947d13.tar.gz |
valgrind: Fix build with -fno-common
(From OE-Core rev: 14f14eccf176539493fbfe710b66704feb7710da)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind')
-rw-r--r-- | meta/recipes-devtools/valgrind/valgrind/s390x_vec_op_t.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/s390x_vec_op_t.patch b/meta/recipes-devtools/valgrind/valgrind/s390x_vec_op_t.patch new file mode 100644 index 0000000000..eea671da0a --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/s390x_vec_op_t.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | s390x_vec_op_t is not needed anywhere, only elements of enum are accessed | ||
2 | removing it ensures that valgrind can be built with -fno-common option | ||
3 | |||
4 | Fixes | ||
5 | ld: ../../VEX/libvex-amd64-linux.a(libvex_amd64_linux_a-guest_s390_helpers.o):/usr/src/debug/valgrind/3.15.0-r0/build/VEX/../../valgrind-3.15.0/VEX/priv/guest_s390_defs.h:289: multiple definition of `s390x_vec_op_t'; ../../VEX/libvexmultiarch-amd64-linux.a(libvexmultiarch_amd64_linux_a-multiarch_main_main.o):/usr/src/debug/valgrind/3.15.0-r0/build/VEX/../../valgrind-3.15.0/VEX/priv/guest_s390_defs.h:289: first defined here | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- a/VEX/priv/guest_s390_defs.h | ||
10 | +++ b/VEX/priv/guest_s390_defs.h | ||
11 | @@ -286,7 +286,7 @@ enum { | ||
12 | S390_VEC_OP_VFCHE = 18, | ||
13 | S390_VEC_OP_VFTCI = 19, | ||
14 | S390_VEC_OP_LAST = 20 // supposed to be the last element in enum | ||
15 | -} s390x_vec_op_t; | ||
16 | +}; | ||
17 | |||
18 | /* Arguments of s390x_dirtyhelper_vec_op(...) which are packed into one | ||
19 | ULong variable. | ||