summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-11 23:13:44 -0400
committermidipix <writeonce@midipix.org>2016-09-11 23:15:12 -0400
commit09421c6fda9adec9302f3789277db822683a66be (patch)
treef1b11a21bdc12e20740312c6c4672ce7ef3692aa
parent46715b89cb68c88dad3b9e75c0c50c23a6b7f5d0 (diff)
downloadslibtool-09421c6fda9adec9302f3789277db822683a66be.tar.bz2
slibtool-09421c6fda9adec9302f3789277db822683a66be.tar.xz
link mode: write explicit -lfoo entries into the .la wrapper dependency files.
-rw-r--r--src/logic/slbt_exec_link.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 8c5009f..84b520d 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -585,6 +585,18 @@ static int slbt_exec_link_create_dep_file(
}
}
+ /* -ldeplib */
+ *popt = 0;
+ mark = base;
+ mark += strlen(dctx->cctx->settings.dsoprefix);
+
+ if (fprintf(ectx->fdeps,"-l%s\n",mark) < 0) {
+ fclose(fdeps);
+ return SLBT_SYSTEM_ERROR(dctx);
+ }
+
+ *popt = '.';
+
/* [open dependency list] */
strcpy(depfile,*parg);
mark = depfile + (base - *parg);