diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-04-05 08:26:46 +0100 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-04-05 07:37:59 +0000 |
commit | bdfc6244aea6624126186fa92bd23dc2aaf580e8 (patch) | |
tree | aacc556c4d3b09f10dd0caccc8fb2105d54188ed /src/logic | |
parent | d1da94d2d072a0c8b54c0bc256edc133effd9a15 (diff) | |
download | slibtool-bdfc6244aea6624126186fa92bd23dc2aaf580e8.tar.bz2 slibtool-bdfc6244aea6624126186fa92bd23dc2aaf580e8.tar.xz |
link mode: always include explicit -L dirs in ldpathenv.
Diffstat (limited to 'src/logic')
-rw-r--r-- | src/logic/slbt_exec_link.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index 97e3276..09a3928 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -494,9 +494,15 @@ static int slbt_exec_link_adjust_argument_vector( if ((fd = openat(fdcwd,ldir,O_DIRECTORY,0)) < 0) *mark = 0; - else + else { close(fd); + if ((ret = slbt_emit_fdwrap_amend_dl_path( + dctx,ectx,depsmeta,"%s",ldir)) < 0) { + return ret; + } + } + *aarg++ = *carg++; } else if (**carg == '-') { |