< prev index next >
make/autoconf/spec.gmk.in
Print this page
*** 310,319 ****
--- 310,329 ----
# Enable unlimited crypto policy
UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
GCOV_ENABLED=@GCOV_ENABLED@
+ # AddressSanitizer
+ export ASAN_ENABLED:=@ASAN_ENABLED@
+ export DEVKIT_LIB_DIR:=@DEVKIT_LIB_DIR@
+ ifeq ($(ASAN_ENABLED), yes)
+ export ASAN_OPTIONS="handle_segv=0 detect_leaks=0"
+ ifneq ($(DEVKIT_LIB_DIR),)
+ export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(DEVKIT_LIB_DIR)
+ endif
+ endif
+
# Necessary additional compiler flags to compile X11
X_CFLAGS:=@X_CFLAGS@
X_LIBS:=@X_LIBS@
# The lowest required version of macosx
< prev index next >