2013-08-30 18:12:58 +02:00
|
|
|
# This option enables -fsanitize=undefined for stage2 and stage3.
|
|
|
|
|
2018-05-10 12:15:42 +02:00
|
|
|
STAGE2_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP
|
|
|
|
STAGE3_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP
|
|
|
|
POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -DUBSAN_BOOTSTRAP \
|
2013-11-29 21:13:45 +01:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
|
2013-08-30 18:12:58 +02:00
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \
|
|
|
|
-B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs
|