ref: 4eb7219a229bc8f9ac71a3a46f3fbfa875f32452
parent: 25bdeed20e3d0915bca71d488b9d7bcda07c4109
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Sep 23 23:52:30 EDT 2016
Propagate dynamic linker flags when using libs
--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -347,6 +347,7 @@
| `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)
--- a/mbld/util.myr
+++ b/mbld/util.myr
@@ -86,7 +86,7 @@
-> 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)