From: "Kefu Chai" <k.chai@proxmox.com>
To: "Kefu Chai" <k.chai@proxmox.com>, <pve-devel@lists.proxmox.com>
Cc: Wolfgang Bumiller <w.bumiller@proxmox.com>
Subject: Re: [pve-devel] [PATCH proxmox-fuse-rs] Remove deprecated shared_flag() call from build script
Date: Thu, 15 Jan 2026 11:56:19 +0800 [thread overview]
Message-ID: <DFOUZHEID2JU.3OXH2UMZLN08L@proxmox.com> (raw)
In-Reply-To: <20260105140709.1214107-1-k.chai@proxmox.com>
Hi Wolfgang, could you please help review this change?
It's not a critical one, but it helps to address the warning from the
compiler.
On Mon Jan 5, 2026 at 10:05 PM CST, Kefu Chai wrote:
> Root cause:
> The cc crate deprecated the shared_flag() method because it only
> creates static libraries (.a files), making the shared_flag parameter
> meaningless and confusing.
>
> The warning indicated:
> warning: use of deprecated method `cc::Build::shared_flag`:
> cc only creates static libraries, setting this does nothing
>
> Impact:
> - shared_flag(false) was a no-op that did nothing
> - Its removal does not change the build behavior
> - The build still produces libglue.a as expected
>
> Fix:
> Remove the .shared_flag(false) call from the cc::Build chain.
> The build defaults to static library output, which is what we want.
>
> Verification:
> - Build completes without warnings
> - Generated library is still static (.a)
> - No functional changes to the FUSE bindings
>
> Signed-off-by: Kefu Chai <k.chai@proxmox.com>
> ---
> build.rs | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/build.rs b/build.rs
> index d75166e..f9dd5f1 100644
> --- a/build.rs
> +++ b/build.rs
> @@ -11,10 +11,7 @@ fn main() {
>
> let mut cc = cc::Build::new();
>
> - cc.pic(true)
> - .shared_flag(false)
> - .opt_level(3)
> - .flag("-DFUSE_USE_VERSION=35");
> + cc.pic(true).opt_level(3).flag("-DFUSE_USE_VERSION=35");
>
> for flag in ccflags.split_ascii_whitespace() {
> cc.flag(flag);
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2026-01-15 3:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-05 14:05 Kefu Chai
2026-01-15 3:56 ` Kefu Chai [this message]
2026-01-15 11:13 ` [pve-devel] applied: " Wolfgang Bumiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DFOUZHEID2JU.3OXH2UMZLN08L@proxmox.com \
--to=k.chai@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
--cc=w.bumiller@proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox