File: bootstrap-ubsan.mk

package info (click to toggle)
libiberty 20190122-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 8,092 kB
  • sloc: ansic: 80,451; sh: 3,776; cpp: 1,686; makefile: 1,586; perl: 302
file content (8 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (53)
1
2
3
4
5
6
7
8
# This option enables -fsanitize=undefined for stage2 and stage3.

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