From 9bbe9f6d82a7dfb5e53e8d3c7f01ae456850d593 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 26 Feb 2024 17:57:32 +0000 Subject: slbt_adjust_linker_argument(): always map -static libfoo.la to .libs/libfoo.a. --- src/logic/linkcmd/slbt_linkcmd_argv.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3