summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mbld/deps.myr1
-rw-r--r--mbld/util.myr2
2 files changed, 2 insertions, 1 deletions
diff --git a/mbld/deps.myr b/mbld/deps.myr
index 9ac4d2b..839dfe8 100644
--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -347,6 +347,7 @@ const scrapelibs = {dg, lib, incs
| `bio.Ok 'X':
d = rdstr(f)
std.slpush(&dg.extlibs, d)
+ dg.dynamic = true
| `bio.Ok _: done = true
| `bio.Eof: done = true
| `bio.Err e: std.fatal("io error reading {}: {}", lib, e)
diff --git a/mbld/util.myr b/mbld/util.myr
index 443d127..c9efa06 100644
--- a/mbld/util.myr
+++ b/mbld/util.myr
@@ -86,7 +86,7 @@ const srcswapsuffix = {src, new
-> std.strcat(base, new)
elif std.hassuffix(suff, ".s")
-> std.strcat(base, new)
- elif std.hassuffix(base, ".glue.c")
+ elif std.hassuffix(suff, ".glue.c")
-> std.strjoin([base, ".glue", new][:], "")
else
std.fatal("unrecognized source {}\n", src)