summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-25 17:50:10 -0400
committermidipix <writeonce@midipix.org>2016-09-25 17:50:10 -0400
commite5d83d0dcc7740b98989572ba6de7c3de36b5606 (patch)
treee148f593c94ad60365feb07a648e126329d0b364 /src
parent0fb20a657d44f0afd5f1feed096cfe434fb6b56f (diff)
downloadslibtool-e5d83d0dcc7740b98989572ba6de7c3de36b5606.tar.bz2
slibtool-e5d83d0dcc7740b98989572ba6de7c3de36b5606.tar.xz
link mode: properly handle -all-static when creating an executable image.
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_link.c4
1 files changed, 4 insertions, 0 deletions
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);