diff options
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); |