ref: 90ed95ded198b9c57dfb6bf172cfd975da73e66f
parent: 46ed41336621a10e35d0febce05d0ac1a4dcfa48
author: Ori Bernstein <[email protected]>
date: Fri Oct 19 15:07:37 EDT 2012
More OSX build fixes.
--- a/libstd/Makefile
+++ b/libstd/Makefile
@@ -30,7 +30,7 @@
cp start-$(SYS).s start.s
test: libstd.a
- ../myrbuild/myrbuild -b test test.myr -I.
+ ../myrbuild/myrbuild -b test -I. test.myr
$(MYRLIB): $(MYRSRC) $(ASMSRC)
--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -290,8 +290,8 @@
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]);