summaryrefslogtreecommitdiff
path: root/myrbuild
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-10-24 14:01:46 -0400
committerOri Bernstein <orib@google.com>2012-10-24 14:01:46 -0400
commitbd389067cb68d0d7b4c55db95f1b8021f1d95524 (patch)
treecd4730b0de825372de9c50e48d851469c103019d /myrbuild
parent88e09f2323da6f5f3e8b04bfe492fdf53ffdefbc (diff)
parenta3f00eee7003eae5aaf6c91fd674915e098b8b18 (diff)
downloadmc-bd389067cb68d0d7b4c55db95f1b8021f1d95524.tar.gz
Merge branch 'master' of git+ssh://git.eigenstate.org/git/ori/mc
Diffstat (limited to 'myrbuild')
-rw-r--r--myrbuild/myrbuild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/myrbuild/myrbuild.c b/myrbuild/myrbuild.c
index 76edf07..965a1d7 100644
--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -290,8 +290,8 @@ void linkobj(char **files, size_t nfiles)
snprintf(buf, sizeof buf, "-L%s%s", Instroot, "/lib/myr");
lappend(&args, &nargs, strdup(buf));
for (i = 0; i < nincpaths; i++) {
- lappend(&args, &nargs, strdup("-L"));
- lappend(&args, &nargs, strdup(incpaths[i]));
+ snprintf(buf, sizeof buf, "-L%s", incpaths[i]);
+ lappend(&args, &nargs, strdup(buf));
}
for (i = 0; i < nlibs; i++) {
snprintf(buf, sizeof buf, "-l%s", libs[i]);