diff options
author | midipix <writeonce@midipix.org> | 2024-03-05 02:57:14 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-03-05 02:59:06 +0000 |
commit | 39aef65b196bd674a5dc2f0a4ec383f63043ce99 (patch) | |
tree | b3a5d16a14a76b968113c8c5cd84d7ddbfed2553 /src/logic/slbt_exec_ctx.c | |
parent | 950b1105158e1a48beb334f5e7cb99fc173c3d85 (diff) | |
download | slibtool-39aef65b196bd674a5dc2f0a4ec383f63043ce99.tar.bz2 slibtool-39aef65b196bd674a5dc2f0a4ec383f63043ce99.tar.xz |
slbt_ectx_get_exec_ctx(): create the output-relative .libs directory as needed.
Diffstat (limited to 'src/logic/slbt_exec_ctx.c')
-rw-r--r-- | src/logic/slbt_exec_ctx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c index e6fd248..71ab70a 100644 --- a/src/logic/slbt_exec_ctx.c +++ b/src/logic/slbt_exec_ctx.c @@ -11,6 +11,7 @@ #include <slibtool/slibtool.h> #include "slibtool_driver_impl.h" +#include "slibtool_mkdir_impl.h" #include "slibtool_linkcmd_impl.h" #include "slibtool_errinfo_impl.h" #include "slibtool_ar_impl.h" @@ -635,6 +636,13 @@ int slbt_ectx_get_exec_ctx( dlactxv++; } + if (slbt_mkdir(dctx,ictx->ctx.ldirname) < 0) + return slbt_ectx_free_exec_ctx_impl( + ictx, + SLBT_SYSTEM_ERROR( + dctx, + ictx->ctx.ldirname)); + if (slbt_ar_create_dlsyms( ictx->dlactxv, ictx->ctx.dlunit, |