mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 13:33:15 +00:00
Merge pull request #5127 from opensourcerouting/asan-updates
configure.ac/doc: update address sanitizer pointers
This commit is contained in:
commit
a4862a00a3
@ -328,8 +328,8 @@ if test "$enable_thread_sanitizer" = "yes"; then
|
|||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
if test "$enable_memory_sanitizer" = "yes"; then
|
if test "$enable_memory_sanitizer" = "yes"; then
|
||||||
AC_C_FLAG([-fsanitize=thread -fPIE -pie], [
|
AC_C_FLAG([-fsanitize=memory -fPIE -pie], [
|
||||||
AC_MSG_ERROR([$CC does not support Thread Sanitizer.])
|
AC_MSG_ERROR([$CC does not support Memory Sanitizer.])
|
||||||
], [
|
], [
|
||||||
SAN_FLAGS="-fsanitize=memory -fPIE -pie"
|
SAN_FLAGS="-fsanitize=memory -fPIE -pie"
|
||||||
])
|
])
|
||||||
|
@ -189,11 +189,8 @@ for ``master`` branch:
|
|||||||
git clone https://github.com/FRRouting/frr.git
|
git clone https://github.com/FRRouting/frr.git
|
||||||
cd frr
|
cd frr
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
export CC=gcc
|
./configure \
|
||||||
export CFLAGS="-O1 -g -fsanitize=address -fno-omit-frame-pointer"
|
--enable-address-sanitizer \
|
||||||
export LD=gcc
|
|
||||||
export LDFLAGS="-g -fsanitize=address -ldl"
|
|
||||||
./configure --enable-shared=no \
|
|
||||||
--prefix=/usr/lib/frr --sysconfdir=/etc/frr \
|
--prefix=/usr/lib/frr --sysconfdir=/etc/frr \
|
||||||
--localstatedir=/var/run/frr \
|
--localstatedir=/var/run/frr \
|
||||||
--sbindir=/usr/lib/frr --bindir=/usr/lib/frr \
|
--sbindir=/usr/lib/frr --bindir=/usr/lib/frr \
|
||||||
|
Loading…
Reference in New Issue
Block a user