X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=config%2Fbootstrap-ubsan.mk;h=1d85fe1c836dce0a54d2b7577fb91db93b1081db;hb=adeab0c5b33fd5f4959fa9a079a5b558f0088ba3;hp=2d21e832e217a968e6aaf2a749a18352a0fb2d28;hpb=4d7b5c9754b09b0b975bf2b87a1cc0fae2d6fc5e;p=deliverable%2Fbinutils-gdb.git diff --git a/config/bootstrap-ubsan.mk b/config/bootstrap-ubsan.mk index 2d21e832e2..1d85fe1c83 100644 --- a/config/bootstrap-ubsan.mk +++ b/config/bootstrap-ubsan.mk @@ -1,7 +1,8 @@ # This option enables -fsanitize=undefined for stage2 and stage3. -STAGE2_CFLAGS += -fsanitize=undefined -STAGE3_CFLAGS += -fsanitize=undefined -POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lpthread \ +STAGE2_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP +STAGE3_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP +POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -DUBSAN_BOOTSTRAP \ + -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs