summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-23 08:59:40 -0400
committermidipix <writeonce@midipix.org>2016-04-23 09:29:20 -0400
commit26ea30b3aa10c572acb726eff9b833e443eb46e2 (patch)
tree7f5f669afce7fd3fae22b6bdae544b5c84f438f6 /src/logic/slbt_exec_ctx.c
parent4469ed8a0cdaf0e6f238415dc624e29f681baa5d (diff)
downloadslibtool-26ea30b3aa10c572acb726eff9b833e443eb46e2.tar.bz2
slibtool-26ea30b3aa10c572acb726eff9b833e443eb46e2.tar.xz
link mode: added .lai support via a symlink to the .la library wrapper.
Diffstat (limited to 'src/logic/slbt_exec_ctx.c')
-rw-r--r--src/logic/slbt_exec_ctx.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index ad4ffa7..23cae68 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -268,7 +268,7 @@ int slbt_get_exec_ctx(
+ 1;
}
- /* linking: arfilename, lafilename, dsofilename */
+ /* linking: arfilename, lafilename, laifilename, dsofilename */
if (dctx->cctx->mode == SLBT_MODE_LINK && dctx->cctx->libname) {
/* arprefix, dsoprefix */
if (dctx->cctx->drvflags & SLBT_DRIVER_MODULE) {
@@ -299,6 +299,15 @@ int slbt_get_exec_ctx(
ch++;
+ /* laifilename */
+ ictx->ctx.laifilename = ch;
+ ch += sprintf(ch,"%s%s%s.lai",
+ ictx->ctx.ldirname,
+ dsoprefix,
+ dctx->cctx->libname);
+ ch++;
+
+
/* dsofilename */
ictx->ctx.dsofilename = ch;
ch += sprintf(ch,"%s%s%s%s",