meta-agl-profile-telematics: recipes-core: systemd: change canbus systemd match regex
[AGL/meta-agl.git] / meta-agl-profile-core / recipes-devtools / valgrind / valgrind / link-gz-tests.patch
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