From 39aef65b196bd674a5dc2f0a4ec383f63043ce99 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 5 Mar 2024 02:57:14 +0000 Subject: slbt_ectx_get_exec_ctx(): create the output-relative .libs directory as needed. --- src/logic/slbt_exec_ctx.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #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, -- cgit v1.2.3