diff options
author | Ori Bernstein <ori@eigenstate.org> | 2014-08-14 10:40:32 -0400 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2014-08-14 10:40:32 -0400 |
commit | 8ce47c5a9f35da34d222a5e89beb0885f8a82463 (patch) | |
tree | 07e3588b748521241e6430a24ea3115dbc4fb943 /myrbuild | |
parent | de4e4e086705df3cf6ea86e92151aff077a8e768 (diff) | |
download | mc-8ce47c5a9f35da34d222a5e89beb0885f8a82463.tar.gz |
Add path joining and normalization functions.
Diffstat (limited to 'myrbuild')
-rw-r--r-- | myrbuild/myrbuild.c | 4 |
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); |