diff options
author | groeck <groeck@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2012-12-21 16:11:38 +0000 |
---|---|---|
committer | groeck <groeck@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2012-12-21 16:11:38 +0000 |
commit | aba3587e222378ed70c4507b6feaea30449cc9d9 (patch) | |
tree | 9a2d0ea9aba206b0f08f4b67d1fbe0f024c0c4b4 /tools | |
parent | d18e0d4178146074602f428842bba499f6417b7f (diff) | |
download | i2c-tools-aba3587e222378ed70c4507b6feaea30449cc9d9.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
Diffstat (limited to 'tools')
-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 |