From b8c9c457c125718cdd2a25d876d8dac747f06f01 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 25 Aug 2017 20:09:34 +0200 Subject: [PATCH] btrfs-progs: build: properly pass the LDFLAGS during tsan build The variable LD_FLAGS does not exist and the flags are not used, we need to use the newly added internal debugging linker flags. Signed-off-by: David Sterba --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f196198c..3d55203f 100644 --- a/Makefile +++ b/Makefile @@ -168,7 +168,7 @@ endif ifneq (,$(findstring tsan,$(D))) DEBUG_CFLAGS_INTERNAL += -fsanitize=thread -fPIE - LD_FLAGS += -fsanitize=thread -ltsan -pie + DEBUG_LDFLAGS_INTERNAL += -fsanitize=thread -ltsan -pie endif ifneq (,$(findstring ubsan,$(D)))