Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Suppress building ptest apps with the -gstabs option |
| 2 | |
| 3 | Force the configure tests for -gstabs compiler support to fail so that |
| 4 | the regression tests don't try to build with the -gstabs option. |
| 5 | Otherwise, the valgrind build when ptest is enabled fails with the |
| 6 | error: |
| 7 | Stabs debuginfo not supported: |
| 8 | ../package/usr/lib/valgrind/ptest/memcheck/tests/deep_templates |
| 9 | ERROR: Function failed: split_and_strip_files |
| 10 | |
| 11 | Upstream-Status: Inappropriate [gstabs support is appropriate upstream, |
| 12 | but not for this distro] |
| 13 | |
| 14 | Signed-off-by: Dave Lerner <dave.lerner@windriver.com> |
| 15 | |
| 16 | diff --git a/configure.ac b/configure.ac |
| 17 | index 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 | |