summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorMura Li <mura_li@castech.com.tw>2017-11-28 11:37:01 +0800
committerOri Bernstein <ori@eigenstate.org>2017-11-27 21:11:09 -0800
commit78da203b42b5084a7664e8773f418a4730184d53 (patch)
tree705467bdd48e9eadeeff1572f318adadf444185d /mbld
parent422ae1fdf693890b14d9e0c40298065c1342a0ec (diff)
downloadmc-78da203b42b5084a7664e8773f418a4730184d53.tar.gz
Allow MYR_LDFLAGS to work properly
Diffstat (limited to 'mbld')
-rw-r--r--mbld/config+plan9-x64.myr2
-rw-r--r--mbld/deps.myr2
2 files changed, 3 insertions, 1 deletions
diff --git a/mbld/config+plan9-x64.myr b/mbld/config+plan9-x64.myr
index a25a3af..b13fedc 100644
--- a/mbld/config+plan9-x64.myr
+++ b/mbld/config+plan9-x64.myr
@@ -3,7 +3,7 @@ pkg config =
const Instroot = "/"
const Sys = "Plan9"
const Objsuffix = ".6"
- const Linkcmd = ["6l", "-lo"]
+ const Linkcmd = ["6l", "-l"]
const Arcmd = ["ar", "u"]
const Ascmd = ["6a"]
const Directlib = true
diff --git a/mbld/deps.myr b/mbld/deps.myr
index 7c54e34..79f90c4 100644
--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -431,6 +431,8 @@ const linkcmd = {b, n, mt, bin, libs, dynlibs, istest
for o : opt_ldflags
std.slpush(&n.cmd, o)
;;
+
+ std.slpush(&n.cmd, "-o")
std.slpush(&n.cmd, std.sldup(bin))
if mt.ldscript.len > 0
std.slpush(&n.cmd, std.sldup("-T"))