summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-19 18:19:02 -0400
committermidipix <writeonce@midipix.org>2016-03-19 18:19:02 -0400
commit0919b02e38a0972e35c1c8ff3e0c3596e620b678 (patch)
tree410ca8ff9bb1b0f9bc5ad2a8a55a5dfdb52430aa
parent2691fe73dbf4bd16f98211830460041ef37f16bc (diff)
downloadslibtool-0919b02e38a0972e35c1c8ff3e0c3596e620b678.tar.bz2
slibtool-0919b02e38a0972e35c1c8ff3e0c3596e620b678.tar.xz
slbt_exec_ctx_alloc(): account for .lo input objects located under .libs/
-rw-r--r--src/logic/slbt_exec_ctx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index 5a61e24..6bae3fd 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -84,6 +84,9 @@ static struct slbt_exec_ctx_impl * slbt_exec_ctx_alloc(
else if ((csrc = slbt_source_file(dctx->cctx->cargv)))
size += 4*strlen(csrc);
+ /* buffer size (.libs/%.o, pessimistic) */
+ size += argc * strlen(".libs/");
+
/* alloc */
if (!(args = malloc(size)))
return 0;