btrfs-progs: build: fix building libbtrfs.so with tsan
authorDavid Sterba <dsterba@suse.com>
Mon, 28 Aug 2017 11:33:19 +0000 (13:33 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 8 Sep 2017 14:15:05 +0000 (16:15 +0200)
commit2e5617c9a6d76b5acd2f04c8567c47803599e843
treee98cfb89c2f0bbeebe163b8aec0f76acfdc66da3
parentb8c9c457c125718cdd2a25d876d8dac747f06f01
btrfs-progs: build: fix building libbtrfs.so with tsan

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>
Makefile