summaryrefslogtreecommitdiffhomepage
path: root/src/logic/slbt_exec_link.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-13 18:52:26 -0400
committermidipix <writeonce@midipix.org>2016-04-13 23:45:16 -0400
commit69bc4af3f33eb27516f85b22d53060c0ec8b0f52 (patch)
tree699fa0535bc1cbd14838044211df82ca2e732aab /src/logic/slbt_exec_link.c
parent14d60ab4516b19ff7858242b458d5d0894627f15 (diff)
downloadslibtool-69bc4af3f33eb27516f85b22d53060c0ec8b0f52.tar.bz2
slibtool-69bc4af3f33eb27516f85b22d53060c0ec8b0f52.tar.xz
link mode: slbt_exec_link_create_archive(): integrated slbt_archive_import().
Diffstat (limited to 'src/logic/slbt_exec_link.c')
-rw-r--r--src/logic/slbt_exec_link.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 3c82e46..3852e6e 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -302,6 +302,12 @@ static int slbt_exec_link_create_archive(
if ((slbt_spawn(ectx,true) < 0) || ectx->exitcode)
return -1;
+ /* input objects associated with .la archives */
+ for (parg=ectx->cargv; *parg; parg++)
+ if (slbt_adjust_input_argument(*parg,".la",".a",fpic))
+ if (slbt_archive_import(dctx,ectx,output,*parg))
+ return -1;
+
/* ranlib argv */
if ((size_t)snprintf(program,sizeof(program),"%s",
dctx->cctx->host.ranlib) >= sizeof(program))