ref: dd3b0346f6b08112568fae32bebd2461e6b21196
parent: fa1ece4195b01ec77891651037f695caed9a410c
author: Ori Bernstein <[email protected]>
date: Wed Mar 20 10:03:39 EDT 2013
Only add a library to the link list once.
--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -199,7 +199,7 @@
localdep = usetomyr(deps[i]);
compile(localdep);
free(localdep);
- } else {
+ } else if (!inlist(libs, nlibs, deps[i])) {
lappend(&libs, &nlibs, deps[i]);
}
}