blob: 849dfc50f92c5186c2db0db76f3c4cf25daa438c [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Suppress building ptest apps with the -gstabs option
2
3Force the configure tests for -gstabs compiler support to fail so that
4the regression tests don't try to build with the -gstabs option.
5Otherwise, the valgrind build when ptest is enabled fails with the
6error:
7 Stabs debuginfo not supported:
8 ../package/usr/lib/valgrind/ptest/memcheck/tests/deep_templates
9 ERROR: Function failed: split_and_strip_files
10
11Upstream-Status: Inappropriate [gstabs support is appropriate upstream,
12 but not for this distro]
13
14Signed-off-by: Dave Lerner <dave.lerner@windriver.com>
15
16diff --git a/configure.ac b/configure.ac
17index 755dfb9..cc8b5e1 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -1743,22 +1743,7 @@ AM_CONDITIONAL(DWARF4, test x$ac_have_dwarf4 = xyes)
21 CFLAGS=$safe_CFLAGS
22
23
24-# does this compiler support -gstabs ?
25-
26-AC_MSG_CHECKING([if gcc accepts -gstabs])
27-
28-safe_CFLAGS=$CFLAGS
29-CFLAGS="-gstabs"
30-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
31- return 0;
32-]])], [
33-ac_have_gstabs=yes
34-AC_MSG_RESULT([yes])
35-], [
36 ac_have_gstabs=no
37-AC_MSG_RESULT([no])
38-])
39-CFLAGS=$safe_CFLAGS
40 AM_CONDITIONAL([HAVE_GSTABS], [test x$ac_have_gstabs = xyes])
41
42