X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=config%2Fbootstrap-ubsan.mk;h=1d85fe1c836dce0a54d2b7577fb91db93b1081db;hb=47e9d49d2d795224f4b3f04c89c268627b850be4;hp=0cd8b172b0fcefc94223f3f29af080eeab6cfc55;hpb=a5c9fbf2ce50715b18cc94c10ec0515e6fd05407;p=deliverable%2Fbinutils-gdb.git diff --git a/config/bootstrap-ubsan.mk b/config/bootstrap-ubsan.mk index 0cd8b172b0..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 -ldl \ +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