diff options
author | Ross Burton <ross.burton@intel.com> | 2017-07-11 22:50:41 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-17 14:01:38 +0100 |
commit | cc0d3d0936d2534e44eb4375c38d70af6148932e (patch) | |
tree | 1b0bca68c1f56cddf6fc83c148466c0cff4d3dc2 /meta/recipes-devtools/valgrind/valgrind | |
parent | 87f2328fb271ee34d5102cfdb6d66f97fd5188bd (diff) | |
download | poky-cc0d3d0936d2534e44eb4375c38d70af6148932e.tar.gz |
valgrind: fix link failure with gold
(From OE-Core rev: 4c38908169a11635138d357fa4be39a80d6285e8)
Signed-off-by: Ross Burton <ross.burton@intel.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/link-gz-tests.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/link-gz-tests.patch b/meta/recipes-devtools/valgrind/valgrind/link-gz-tests.patch new file mode 100644 index 0000000000..db322398c2 --- /dev/null +++ b/meta/recipes-devtools/valgrind/valgrind/link-gz-tests.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | When checking if the compiler supports compressed debug sections we need to | ||
2 | actually link instead of just compile. Otherwise the compiler thinks that | ||
3 | they are supported, but gold does not support -gz=zlib. | ||
4 | |||
5 | Upstream-Status: Backport (r16459) | ||
6 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
7 | |||
8 | --- a/configure.ac~ 2017-07-11 11:53:16.000000000 +0100 | ||
9 | +++ b/configure.ac 2017-07-11 18:16:13.674130483 +0100 | ||
10 | @@ -2119,7 +2119,7 @@ | ||
11 | safe_CFLAGS=$CFLAGS | ||
12 | CFLAGS="-g -gz=zlib" | ||
13 | |||
14 | -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[ | ||
15 | +AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[ | ||
16 | return 0; | ||
17 | ]])], [ | ||
18 | ac_have_gz_zlib=yes | ||
19 | @@ -2139,7 +2139,7 @@ | ||
20 | safe_CFLAGS=$CFLAGS | ||
21 | CFLAGS="-g -gz=zlib-gnu" | ||
22 | |||
23 | -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ]], [[ | ||
24 | +AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]], [[ | ||
25 | return 0; | ||
26 | ]])], [ | ||
27 | ac_have_gz_zlib_gnu=yes | ||