summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-26 17:57:32 +0000
committermidipix <writeonce@midipix.org>2024-02-26 17:57:32 +0000
commit9bbe9f6d82a7dfb5e53e8d3c7f01ae456850d593 (patch)
tree4b66ecd1e52f5f8c271244e314e4524a8bbf54b0 /src/logic
parentb5e10411a1c764c7b7f82b8b1ff093df7546d028 (diff)
downloadslibtool-9bbe9f6d82a7dfb5e53e8d3c7f01ae456850d593.tar.bz2
slibtool-9bbe9f6d82a7dfb5e53e8d3c7f01ae456850d593.tar.xz
slbt_adjust_linker_argument(): always map -static libfoo.la to .libs/libfoo.a.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/linkcmd/slbt_linkcmd_argv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_argv.c b/src/logic/linkcmd/slbt_linkcmd_argv.c
index 0f6f195..a44fdb8 100644
--- a/src/logic/linkcmd/slbt_linkcmd_argv.c
+++ b/src/logic/linkcmd/slbt_linkcmd_argv.c
@@ -257,6 +257,8 @@ slbt_hidden int slbt_adjust_linker_argument(
if (slbt_symlink_is_a_placeholder(fdcwd,arg))
sprintf(dot,"%s",arsuffix);
+ else if (dctx->cctx->drvflags & SLBT_DRIVER_STATIC)
+ sprintf(dot,"%s",arsuffix);
else if ((fdlib = openat(fdcwd,arg,O_RDONLY)) >= 0)
close(fdlib);
else