aboutsummaryrefslogtreecommitdiff
path: root/config/bootstrap-ubsan.mk
blob: 0cd8b172b0fcefc94223f3f29af080eeab6cfc55 (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 -ldl \
		      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \
		      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs