From 09421c6fda9adec9302f3789277db822683a66be Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 11 Sep 2016 23:13:44 -0400 Subject: link mode: write explicit -lfoo entries into the .la wrapper dependency files. --- src/logic/slbt_exec_link.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/logic') 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); -- cgit v1.2.3