summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-04-05 08:26:46 +0100
committermidipix <writeonce@midipix.org>2021-04-05 07:37:59 +0000
commitbdfc6244aea6624126186fa92bd23dc2aaf580e8 (patch)
treeaacc556c4d3b09f10dd0caccc8fb2105d54188ed /src
parentd1da94d2d072a0c8b54c0bc256edc133effd9a15 (diff)
downloadslibtool-bdfc6244aea6624126186fa92bd23dc2aaf580e8.tar.bz2
slibtool-bdfc6244aea6624126186fa92bd23dc2aaf580e8.tar.xz
link mode: always include explicit -L dirs in ldpathenv.
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_link.c8
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 == '-') {