]> git.ipfire.org Git - thirdparty/gcc.git/blame - config/bootstrap-ubsan.mk
config/
[thirdparty/gcc.git] / config / bootstrap-ubsan.mk
CommitLineData
9e46467d 1# This option enables -fsanitize=undefined for stage2 and stage3.
2
3STAGE2_CFLAGS += -fsanitize=undefined
4STAGE3_CFLAGS += -fsanitize=undefined
19b928d9 5POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lpthread -ldl \
9e46467d 6 -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \
7 -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs