da17fe9de9
config/ * acx.m4: Import from gcc. * bootstrap-asan.mk: Likewise. * multi.m4: Likewise. / * configure: Regnerate. gas/ * configure: Regnerate. ld/ * configure: Regnerate. libiberty/ * configure: Regnerate. zlib/ * configure: Regnerate.
12 lines
460 B
Makefile
12 lines
460 B
Makefile
# This option enables -fsanitize=address for stage2 and stage3.
|
|
|
|
# Suppress LeakSanitizer in bootstrap.
|
|
export ASAN_OPTIONS=detect_leaks=0:use_odr_indicator=1
|
|
|
|
STAGE2_CFLAGS += -fsanitize=address
|
|
STAGE3_CFLAGS += -fsanitize=address
|
|
POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs
|