diff options
author | midipix <writeonce@midipix.org> | 2016-09-11 23:13:44 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-09-11 23:15:12 -0400 |
commit | 09421c6fda9adec9302f3789277db822683a66be (patch) | |
tree | f1b11a21bdc12e20740312c6c4672ce7ef3692aa /src | |
parent | 46715b89cb68c88dad3b9e75c0c50c23a6b7f5d0 (diff) | |
download | slibtool-09421c6fda9adec9302f3789277db822683a66be.tar.bz2 slibtool-09421c6fda9adec9302f3789277db822683a66be.tar.xz |
link mode: write explicit -lfoo entries into the .la wrapper dependency files.
Diffstat (limited to 'src')
-rw-r--r-- | src/logic/slbt_exec_link.c | 12 |
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); |