mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-26 16:12:34 +00:00
btrfs-progs: build: remove duplicate library from libbtrfs-test
In some cases the -lbtrfs is not resolved and the library is not found. But the real libbtrfs.so is linked directly and we don't need to pass the duplicate -lbtrfs. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
c674031cae
commit
79bc8135c0
2
Makefile
2
Makefile
@ -667,7 +667,7 @@ library-test: tests/library-test.c libbtrfs.so
|
||||
$(Q)mkdir -p $(TMPD)/include/btrfs && \
|
||||
cp $(libbtrfs_headers) $(TMPD)/include/btrfs && \
|
||||
cp libbtrfs.so.0.1 $(TMPD) && \
|
||||
cd $(TMPD) && $(CC) -I$(TMPD)/include -o $@ $(addprefix $(ABSTOPDIR)/,$^) -Wl,-rpath=$(ABSTOPDIR) -lbtrfs
|
||||
cd $(TMPD) && $(CC) -I$(TMPD)/include -o $@ $(addprefix $(ABSTOPDIR)/,$^) -Wl,-rpath=$(ABSTOPDIR)
|
||||
@echo " [TEST RUN] $@"
|
||||
$(Q)cd $(TMPD) && LD_PRELOAD=libbtrfs.so.0.1 ./$@
|
||||
@echo " [TEST CLEAN] $@"
|
||||
|
Loading…
Reference in New Issue
Block a user