/pidgin/main: cdc946c1f079: Clang: enable address sanitizer
Tomasz Wasilczyk
twasilczyk at pidgin.im
Fri Oct 4 17:42:00 EDT 2013
Changeset: cdc946c1f079fa0e9ad62d94ebc38a7a0c3eba7a
Author: Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date: 2013-10-04 23:41 +0200
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/cdc946c1f079
Description:
Clang: enable address sanitizer
diffstat:
configure.ac | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1493,6 +1493,9 @@ AC_PATH_PROG(pidginpath, pidgin)
if test "${CC: -6}" = "/clang" -o "$CC" = "clang"; then
AC_DEFINE([HAVE_CLANG], [1], [Define to 1 if you compile with clang.])
GLIB_LIBS=`echo $GLIB_LIBS | $sedpath 's/-pthread/-lpthread/'`
+
+ dnl Enable address sanitizer.
+ CFLAGS="$CFLAGS -faddress-sanitizer -g -fno-omit-frame-pointer -fno-inline -fno-optimize-sibling-calls"
fi
dnl #######################################################################
More information about the Commits
mailing list