Message ID | 20250513133551.584e4366@endymion |
---|---|
State | New |
Headers | show |
Series | i2ctransfer: Don't link with libi2c | expand |
On Tue, May 13, 2025 at 01:35:51PM +0200, Jean Delvare wrote: > 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 <jdelvare@suse.de> Applied, thanks!
--- i2c-tools.orig/tools/Module.mk +++ i2c-tools/tools/Module.mk @@ -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
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 <jdelvare@suse.de> --- tools/Module.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)