summaryrefslogtreecommitdiff
path: root/myrbuild
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-10-19 19:07:37 -0400
committerOri Bernstein <ori@eigenstate.org>2012-10-19 19:07:37 -0400
commit90ed95ded198b9c57dfb6bf172cfd975da73e66f (patch)
treefa51a3eae1bf73b55b765cd6857ab112386bbecd /myrbuild
parent46ed41336621a10e35d0febce05d0ac1a4dcfa48 (diff)
downloadmc-90ed95ded198b9c57dfb6bf172cfd975da73e66f.tar.gz
More OSX build fixes.
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 d38b910..9c265b3 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]);