From 5cfb1106654010182defae8ccff9905f4c1759a6 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 5 Mar 2024 04:04:38 +0000 Subject: slbt_adjust_linker_argument(): handle no static dependency in -static mode. --- src/logic/linkcmd/slbt_linkcmd_argv.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/logic/linkcmd') 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); -- cgit v1.2.3