From 35d99af6e811f1675dbdc0223957f296c70f35f7 Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Fri, 21 Dec 2012 16:11:38 +0000 Subject: [PATCH] Build fails with recent versions of gcc/ld. Fix by specifying library after .o files. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6104 7894878c-1315-0410-8ee3-d5d059ff63e0 --- tools/Module.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/Module.mk b/tools/Module.mk index 1979248..bfd3250 100644 --- a/tools/Module.mk +++ b/tools/Module.mk @@ -21,16 +21,16 @@ TOOLS_TARGETS := i2cdetect i2cdump i2cset i2cget # $(TOOLS_DIR)/i2cdetect: $(TOOLS_DIR)/i2cdetect.o $(TOOLS_DIR)/i2cbusses.o - $(CC) $(LDFLAGS) $(TOOLS_LDFLAGS) -o $@ $^ + $(CC) $(LDFLAGS) -o $@ $^ $(TOOLS_LDFLAGS) $(TOOLS_DIR)/i2cdump: $(TOOLS_DIR)/i2cdump.o $(TOOLS_DIR)/i2cbusses.o $(TOOLS_DIR)/util.o - $(CC) $(LDFLAGS) $(TOOLS_LDFLAGS) -o $@ $^ + $(CC) $(LDFLAGS) -o $@ $^ $(TOOLS_LDFLAGS) $(TOOLS_DIR)/i2cset: $(TOOLS_DIR)/i2cset.o $(TOOLS_DIR)/i2cbusses.o $(TOOLS_DIR)/util.o - $(CC) $(LDFLAGS) $(TOOLS_LDFLAGS) -o $@ $^ + $(CC) $(LDFLAGS) -o $@ $^ $(TOOLS_LDFLAGS) $(TOOLS_DIR)/i2cget: $(TOOLS_DIR)/i2cget.o $(TOOLS_DIR)/i2cbusses.o $(TOOLS_DIR)/util.o - $(CC) $(LDFLAGS) $(TOOLS_LDFLAGS) -o $@ $^ + $(CC) $(LDFLAGS) -o $@ $^ $(TOOLS_LDFLAGS) # # Objects