From e5d83d0dcc7740b98989572ba6de7c3de36b5606 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 25 Sep 2016 17:50:10 -0400 Subject: link mode: properly handle -all-static when creating an executable image. --- src/logic/slbt_exec_link.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index c021220..7e26fbc 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -1096,6 +1096,10 @@ static int slbt_exec_link_create_executable( *ectx->lout[0] = "-o"; *ectx->lout[1] = output; + /* static? */ + if (dctx->cctx->drvflags & SLBT_DRIVER_ALL_STATIC) + *ectx->dpic = "-static"; + /* cwd */ if (!getcwd(cwd,sizeof(cwd))) return SLBT_SYSTEM_ERROR(dctx); -- cgit v1.2.3