Skip to content

Commit

Permalink
link mode: properly handle -all-static when creating an executable im…
Browse files Browse the repository at this point in the history
…age.
  • Loading branch information
midipix committed Sep 25, 2016
1 parent 0fb20a6 commit e5d83d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/logic/slbt_exec_link.c
Expand Up @@ -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);
Expand Down

0 comments on commit e5d83d0

Please sign in to comment.