Pass LSAN_OPTIONS to Makefiles in subdirectories
authormiyuki <miyuki@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Jan 2016 15:32:17 +0000 (15:32 +0000)
committermiyuki <miyuki@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Jan 2016 15:32:17 +0000 (15:32 +0000)
PR bootstrap/69329
* Makefile.tpl (BASE_FLAGS_TO_PASS): Add LSAN_OPTIONS.
* Makefile.in: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232777 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
Makefile.in
Makefile.tpl

index d5355c6..cb1d51b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-01-24  Mikhail Maltsev  <maltsevm@gmail.com>
+
+       PR bootstrap/69329
+       * Makefile.tpl (BASE_FLAGS_TO_PASS): Add LSAN_OPTIONS.
+       * Makefile.in: Regenerate.
+
 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
 
        * configure.ac: Enable LTO for DJGPP
index 2733c4d..20d1c90 100644 (file)
@@ -789,7 +789,8 @@ BASE_FLAGS_TO_PASS = \
        $(CXX_FOR_TARGET_FLAG_TO_PASS) \
        "TFLAGS=$(TFLAGS)" \
        "CONFIG_SHELL=$(SHELL)" \
-       "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" 
+       "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
+       $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
 
 # We leave this in just in case, but it is not needed anymore.
 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
index f7bb77e..2567365 100644 (file)
@@ -590,7 +590,8 @@ BASE_FLAGS_TO_PASS =[+ FOR flags_to_pass +][+ IF optional +] \
        $(CXX_FOR_TARGET_FLAG_TO_PASS) \
        "TFLAGS=$(TFLAGS)" \
        "CONFIG_SHELL=$(SHELL)" \
-       "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" 
+       "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
+       $(if $(LSAN_OPTIONS),"LSAN_OPTIONS=$(LSAN_OPTIONS)")
 
 # We leave this in just in case, but it is not needed anymore.
 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)