]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #5127 from opensourcerouting/asan-updates
authorQuentin Young <qlyoung@users.noreply.github.com>
Wed, 9 Oct 2019 15:58:56 +0000 (11:58 -0400)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2019 15:58:56 +0000 (11:58 -0400)
configure.ac/doc: update address sanitizer pointers

configure.ac
doc/developer/topotests.rst

index 88f1c4f627c5b465320a532a7a0834baef5a0dcf..730e2ae6f06d16759204924d86340131e3fa993e 100755 (executable)
@@ -328,8 +328,8 @@ if test "$enable_thread_sanitizer" = "yes"; then
   ])
 fi
 if test "$enable_memory_sanitizer" = "yes"; then
-  AC_C_FLAG([-fsanitize=thread -fPIE -pie], [
-    AC_MSG_ERROR([$CC does not support Thread Sanitizer.])
+  AC_C_FLAG([-fsanitize=memory -fPIE -pie], [
+    AC_MSG_ERROR([$CC does not support Memory Sanitizer.])
   ], [
     SAN_FLAGS="-fsanitize=memory -fPIE -pie"
   ])
index a0a574a79cbab0750f6016c1dc10c9aed746bfaa..c2e72e2ec5c1696ec349f334392aaad466331791 100644 (file)
@@ -189,11 +189,8 @@ for ``master`` branch:
    git clone https://github.com/FRRouting/frr.git
    cd frr
    ./bootstrap.sh
-   export CC=gcc
-   export CFLAGS="-O1 -g -fsanitize=address -fno-omit-frame-pointer"
-   export LD=gcc
-   export LDFLAGS="-g -fsanitize=address -ldl"
-   ./configure --enable-shared=no \
+   ./configure \
+       --enable-address-sanitizer \
        --prefix=/usr/lib/frr --sysconfdir=/etc/frr \
        --localstatedir=/var/run/frr \
        --sbindir=/usr/lib/frr --bindir=/usr/lib/frr \