diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-12-21 16:11:38 +0000 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2012-12-21 16:11:38 +0000 |
commit | 35d99af6e811f1675dbdc0223957f296c70f35f7 (patch) | |
tree | 9a2d0ea9aba206b0f08f4b67d1fbe0f024c0c4b4 | |
parent | c32fee2aea294d0fd8304e5275cc22c421427932 (diff) | |
download | i2c-tools-35d99af6e811f1675dbdc0223957f296c70f35f7.tar.gz |
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
-rw-r--r-- | tools/Module.mk | 8 |
1 files 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 |