summaryrefslogtreecommitdiff
path: root/myrbuild
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-03-20 14:03:39 -0400
committerOri Bernstein <ori@eigenstate.org>2013-03-20 14:03:39 -0400
commitdd3b0346f6b08112568fae32bebd2461e6b21196 (patch)
tree7dc3b4c5c25ebae00e2a92558e2cd4f20506aa83 /myrbuild
parentfa1ece4195b01ec77891651037f695caed9a410c (diff)
downloadmc-dd3b0346f6b08112568fae32bebd2461e6b21196.tar.gz
Only add a library to the link list once.
Diffstat (limited to 'myrbuild')
-rw-r--r--myrbuild/myrbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myrbuild/myrbuild.c b/myrbuild/myrbuild.c
index 2e511cb..2aacc01 100644
--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -199,7 +199,7 @@ void compile(char *file)
localdep = usetomyr(deps[i]);
compile(localdep);
free(localdep);
- } else {
+ } else if (!inlist(libs, nlibs, deps[i])) {
lappend(&libs, &nlibs, deps[i]);
}
}