From e5d83d0dcc7740b98989572ba6de7c3de36b5606 Mon Sep 17 00:00:00 2001 From: midipix Date: Sep 25 2016 21:50:10 +0000 Subject: link mode: properly handle -all-static when creating an executable image. --- 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);