aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind/force-nostabs.patch
blob: 849dfc50f92c5186c2db0db76f3c4cf25daa438c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Suppress building ptest apps with the -gstabs option

Force the configure tests for -gstabs compiler support to fail so that
the regression tests don't try to build with the -gstabs option.
Otherwise, the valgrind build when ptest is enabled fails with the
error:
    Stabs debuginfo not supported:
    ../package/usr/lib/valgrind/ptest/memcheck/tests/deep_templates
    ERROR: Function failed: split_and_strip_files

Upstream-Status: Inappropriate [gstabs support is appropriate upstream,
        but not for this distro]

Signed-off-by: Dave Lerner <dave.lerner@windriver.com>

diff --git a/configure.ac b/configure.ac
index 755dfb9..cc8b5e1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1743,22 +1743,7 @@ AM_CONDITIONAL(DWARF4, test x$ac_have_dwarf4 = xyes)
 CFLAGS=$safe_CFLAGS
 
 
-# does this compiler support -gstabs ?
-
-AC_MSG_CHECKING([if gcc accepts -gstabs])
-
-safe_CFLAGS=$CFLAGS
-CFLAGS="-gstabs"
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
-  return 0;
-]])], [
-ac_have_gstabs=yes
-AC_MSG_RESULT([yes])
-], [
 ac_have_gstabs=no
-AC_MSG_RESULT([no])
-])
-CFLAGS=$safe_CFLAGS
 AM_CONDITIONAL([HAVE_GSTABS], [test x$ac_have_gstabs = xyes])