btrfs-progs: build: properly pass the LDFLAGS during tsan build
authorDavid Sterba <dsterba@suse.com>
Fri, 25 Aug 2017 18:09:34 +0000 (20:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 8 Sep 2017 14:15:05 +0000 (16:15 +0200)
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 <dsterba@suse.com>
Makefile

index f196198..3d55203 100644 (file)
--- 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)))