diff options
author | midipix <writeonce@midipix.org> | 2024-03-10 03:46:36 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-03-10 03:46:36 +0000 |
commit | b5f778b5228c4db9c6be9eb023afa3c3ff4d14db (patch) | |
tree | fda05afaa0b867c34e37f105099c8bfdede83dc9 /src/logic/linkcmd/slbt_linkcmd_argv.c | |
parent | d054ee34663b98b4387690f83ac4d836891f9743 (diff) | |
download | slibtool-b5f778b5228c4db9c6be9eb023afa3c3ff4d14db.tar.bz2 slibtool-b5f778b5228c4db9c6be9eb023afa3c3ff4d14db.tar.xz |
slbt_exec_link_adjust_argument_vector(): remove obsolete (and wrong) code path.
Diffstat (limited to 'src/logic/linkcmd/slbt_linkcmd_argv.c')
-rw-r--r-- | src/logic/linkcmd/slbt_linkcmd_argv.c | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_argv.c b/src/logic/linkcmd/slbt_linkcmd_argv.c index e50f6d9..5cfbddb 100644 --- a/src/logic/linkcmd/slbt_linkcmd_argv.c +++ b/src/logic/linkcmd/slbt_linkcmd_argv.c @@ -298,7 +298,6 @@ slbt_hidden int slbt_exec_link_adjust_argument_vector( int fdcwd; char ** carg; char ** aarg; - char * ldir; char * slash; char * mark; char * darg; @@ -359,30 +358,10 @@ slbt_hidden int slbt_exec_link_adjust_argument_vector( mark = *carg; if ((mark[0] == '-') && (mark[1] == 'L')) { - if (mark[2]) { - ldir = &mark[2]; - } else { - *aarg++ = *carg++; - ldir = *carg; - } - - mark = ldir + strlen(ldir); - - if (mark[-1] == '/') - strcpy(mark,".libs"); - else - strcpy(mark,"/.libs"); - - if ((fd = openat(fdcwd,ldir,O_DIRECTORY,0)) < 0) - *mark = 0; - else { - close(fd); - - if ((ret = slbt_emit_fdwrap_amend_dl_path( - dctx,ectx,depsmeta, - "%s",ldir)) < 0) - return ret; - } + if ((ret = slbt_emit_fdwrap_amend_dl_path( + dctx,ectx,depsmeta, + "%s",&mark[2])) < 0) + return ret; *aarg++ = *carg++; |