summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-05 04:04:38 +0000
committermidipix <writeonce@midipix.org>2024-03-05 04:04:38 +0000
commit5cfb1106654010182defae8ccff9905f4c1759a6 (patch)
tree3f17638621bec1e13b8a25690ad8a5f21f50cd66 /src/logic
parent39aef65b196bd674a5dc2f0a4ec383f63043ce99 (diff)
downloadslibtool-5cfb1106654010182defae8ccff9905f4c1759a6.tar.bz2
slibtool-5cfb1106654010182defae8ccff9905f4c1759a6.tar.xz
slbt_adjust_linker_argument(): handle no static dependency in -static mode.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/linkcmd/slbt_linkcmd_argv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_argv.c b/src/logic/linkcmd/slbt_linkcmd_argv.c
index 9197734..71cf2a1 100644
--- a/src/logic/linkcmd/slbt_linkcmd_argv.c
+++ b/src/logic/linkcmd/slbt_linkcmd_argv.c
@@ -257,6 +257,12 @@ slbt_hidden int slbt_adjust_linker_argument(
/* fdcwd */
fdcwd = slbt_driver_fdcwd(dctx);
+ /* .a preferred but a.disabled present? */
+ sprintf(dot,"%s",arsuffix);
+
+ if (slbt_symlink_is_a_placeholder(fdcwd,arg))
+ fpic = true;
+
/* shared library dependency? */
if (fpic) {
sprintf(dot,"%s",dsosuffix);