diff options
author | midipix <writeonce@midipix.org> | 2024-03-05 04:04:38 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-03-05 04:04:38 +0000 |
commit | 5cfb1106654010182defae8ccff9905f4c1759a6 (patch) | |
tree | 3f17638621bec1e13b8a25690ad8a5f21f50cd66 /src/logic | |
parent | 39aef65b196bd674a5dc2f0a4ec383f63043ce99 (diff) | |
download | slibtool-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.c | 6 |
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); |