Except libbtrfs.so object, all other tools compile fine. The error is:
ld: send-stream.o: relocation R_X86_64_PC32 against symbol
`stderr@@GLIBC_2.2.5' can not be used when making a shared object;
recompile with -fPIC
Compiling with -fPIC fixes the problem.
Signed-off-by: David Sterba <dsterba@suse.com>
endif
ifneq (,$(findstring tsan,$(D)))
- DEBUG_CFLAGS_INTERNAL += -fsanitize=thread -fPIE
+ DEBUG_CFLAGS_INTERNAL += -fsanitize=thread -fPIC
DEBUG_LDFLAGS_INTERNAL += -fsanitize=thread -ltsan -pie
endif