diff options
author | midipix <writeonce@midipix.org> | 2024-02-26 17:57:32 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-26 17:57:32 +0000 |
commit | 9bbe9f6d82a7dfb5e53e8d3c7f01ae456850d593 (patch) | |
tree | 4b66ecd1e52f5f8c271244e314e4524a8bbf54b0 /src/logic/linkcmd/slbt_linkcmd_argv.c | |
parent | b5e10411a1c764c7b7f82b8b1ff093df7546d028 (diff) | |
download | slibtool-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/linkcmd/slbt_linkcmd_argv.c')
-rw-r--r-- | src/logic/linkcmd/slbt_linkcmd_argv.c | 2 |
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 |