commit | 534e6fe00a2062be34670276c66b965f0ff8f069 | [log] [tgz] |
---|---|---|
author | Rich Lane <rlane@bigswitch.com> | Thu Apr 17 16:08:58 2014 -0700 |
committer | Rich Lane <rlane@bigswitch.com> | Thu Apr 17 16:15:21 2014 -0700 |
tree | 3790b21f379f73a004449214e5fafa9994d2676c | |
parent | cba60d8440675c48590a202d75b2ffdbbc16c320 [diff] [blame] |
loci: link locitest with --whole-archive This would have caught the duplicate symbols.
diff --git a/c_gen/templates/locitest/Makefile b/c_gen/templates/locitest/Makefile index 70e57ca..00a2f95 100644 --- a/c_gen/templates/locitest/Makefile +++ b/c_gen/templates/locitest/Makefile
@@ -10,7 +10,7 @@ all: locitest locitest: $(LOCITEST_OBJS) loci.a - $(CC) $^ -o $@ + $(CC) -Wl,--whole-archive $^ -Wl,--no-whole-archive -o $@ loci.a: $(LOCI_OBJS) ar rc $@ $^