i2ctransfer: Don't link with libi2c
PATCH 1/1 i2ctransfer: Don't link with libi2c
i2ctransfer doesn't make use of any function from libi2c so it should not link with that library.
Fixes 9fc53a7fc669 ("i2c-tools: add new tool 'i2ctransfer'")
Signed-off-by Jean Delvare <[email protected]>
--- tools/Module.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/Module.mk +2 -2
@@ -36,8 +36,8 @@ $(TOOLS_DIR)/i2cset: $(TOOLS_DIR)/i2cset $(TOOLS_DIR)/i2cget: $(TOOLS_DIR)/i2cget.o $(TOOLS_DIR)/i2cbusses.o $(TOOLS_DIR)/util.o $(LIB_DEPS) $(CC) $(LDFLAGS) -o $@ $^ $(TOOLS_LDFLAGS) -$(TOOLS_DIR)/i2ctransfer: $(TOOLS_DIR)/i2ctransfer.o $(TOOLS_DIR)/i2cbusses.o $(TOOLS_DIR)/util.o $(LIB_DEPS) - $(CC) $(LDFLAGS) -o $@ $^ $(TOOLS_LDFLAGS) +$(TOOLS_DIR)/i2ctransfer: $(TOOLS_DIR)/i2ctransfer.o $(TOOLS_DIR)/i2cbusses.o $(TOOLS_DIR)/util.o + $(CC) $(LDFLAGS) -o $@ $^ # # Objects
Signature · 2 lines
Jean Delvare SUSE L3 Support
Wolfram Sang
AppliedQuoted 5 lines · Jean Delvare
i2ctransfer doesn't make use of any function from libi2c so it should not link with that library.
Fixes 9fc53a7fc669 ("i2c-tools: add new tool 'i2ctransfer'")Signed-off-by Jean Delvare <[email protected]>
Applied, thanks!