aboutsummaryrefslogtreecommitdiff
path: root/config/bootstrap-ubsan.mk
blob: 2d21e832e217a968e6aaf2a749a18352a0fb2d28 (plain)
1
2
3
4
5
6
7
# This option enables -fsanitize=undefined for stage2 and stage3.

STAGE2_CFLAGS += -fsanitize=undefined
STAGE3_CFLAGS += -fsanitize=undefined
POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lpthread \
		      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \
		      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs