summaryrefslogtreecommitdiff
path: root/src/logic/linkcmd
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-09 04:38:14 +0000
committermidipix <writeonce@midipix.org>2024-03-09 04:38:14 +0000
commit7a5788cb91452e7a5b90fa78ef236962f2d9a64f (patch)
tree5fdb1dada59ec8c3fa6fdca9a40079363b79226e /src/logic/linkcmd
parent6ccc20a339c59993709ecacf79e4011c0493d3b2 (diff)
downloadslibtool-7a5788cb91452e7a5b90fa78ef236962f2d9a64f.tar.bz2
slibtool-7a5788cb91452e7a5b90fa78ef236962f2d9a64f.tar.xz
slbt_exec_link_create_archive(): create internal archive under the .libs dir.
Diffstat (limited to 'src/logic/linkcmd')
-rw-r--r--src/logic/linkcmd/slbt_linkcmd_archive.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_archive.c b/src/logic/linkcmd/slbt_linkcmd_archive.c
index 9347678..93237dd 100644
--- a/src/logic/linkcmd/slbt_linkcmd_archive.c
+++ b/src/logic/linkcmd/slbt_linkcmd_archive.c
@@ -62,17 +62,18 @@ slbt_hidden int slbt_exec_link_create_archive(
char ** parg;
char program[PATH_MAX];
char output [PATH_MAX];
+ char namebuf[PATH_MAX];
/* dlopen, dlpreopen: object compilation (derived from dynamic linking) */
if (ectx->dlopenobj) {
slbt_ectx_reset_arguments(ectx);
slbt_reset_placeholders(ectx);
+ sprintf(namebuf,"%s%s",ectx->ldirname,"@ARDLOPEN@");
+
if (slbt_exec_link_create_library(
dctx,ectx,
- "@ARDLOPEN",
- "@ARDLOPEN",
- "@ARDLOPEN",
+ namebuf,namebuf,namebuf,
true) < 0)
return SLBT_NESTED_ERROR(dctx);
}