summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);