summaryrefslogtreecommitdiff
path: root/myrbuild
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-08-14 10:40:32 -0400
committerOri Bernstein <ori@eigenstate.org>2014-08-14 10:40:32 -0400
commit8ce47c5a9f35da34d222a5e89beb0885f8a82463 (patch)
tree07e3588b748521241e6430a24ea3115dbc4fb943 /myrbuild
parentde4e4e086705df3cf6ea86e92151aff077a8e768 (diff)
downloadmc-8ce47c5a9f35da34d222a5e89beb0885f8a82463.tar.gz
Add path joining and normalization functions.
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 4d2c434..2e098da 100644
--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -419,14 +419,14 @@ void linkobj(char **files, size_t nfiles)
die("Unknown file type %s", files[i]);
lappend(&args, &nargs, strdup(buf));
}
- snprintf(buf, sizeof buf, "-L%s%s", Instroot, "/lib/myr");
- lappend(&args, &nargs, strdup(buf));
/* ld -T ldscript -o outfile foo.o bar.o baz.o -L/path1 -L/path2 */
for (i = 0; i < nincpaths; i++) {
snprintf(buf, sizeof buf, "-L%s", incpaths[i]);
lappend(&args, &nargs, strdup(buf));
}
+ snprintf(buf, sizeof buf, "-L%s%s", Instroot, "/lib/myr");
+ lappend(&args, &nargs, strdup(buf));
/* ld -T ldscript -o outfile foo.o bar.o baz.o -L/path1 -L/path2 -llib1 -llib2*/
addlibs(&args, &nargs, libgraph);