summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-07-02 13:39:39 +0200
committerPierre Ossman <ossman@cendio.se>2018-07-02 13:39:39 +0200
commitdaaa48108a0156473b4f8d63265df2004977ba93 (patch)
treeafa0edbfd88b65d25849c87d9028eae89ef526ad
parent5278291a828315372dd265b2d76f8dd9c75bd6d2 (diff)
downloadrdesktop-daaa48108a0156473b4f8d63265df2004977ba93.zip
Always include frame pointers with address sanitizer
This is needed to get proper stack traces with the sanitizer.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6ac9432..eb18403 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,7 +56,7 @@ AC_ARG_ENABLE([address-sanitizer], AS_HELP_STRING([--enable-address-sanitizer],
[enable AddressSanitizer support for detecting a wide variety of \
memory allocation and deallocation errors]), \
[AC_DEFINE(HAVE_ADDRESS_SANITIZER, 1, [enable AddressSanitizer])
- CFLAGS="$CFLAGS -fsanitize=address"
+ CFLAGS="$CFLAGS -fsanitize=address -fno-omit-frame-pointer"
AC_TRY_COMPILE([],[const int i=0;],[AC_MSG_NOTICE([Address Sanitizer Enabled])],
[AC_MSG_ERROR([Address Sanitizer not available])])
])