gettext-rs icon indicating copy to clipboard operation
gettext-rs copied to clipboard

Make GETTEXT_SYSTEM the default, provide an opt-out instead

Open Minoru opened this issue 4 years ago • 1 comments

This discussion convinced me that by default, gettext-sys should link to GNU gettext dynamically. Static linking should only be used if the user requests it explicitly.

Minoru avatar Sep 05 '21 20:09 Minoru

An alternative from https://github.com/gettext-rs/gettext-rs/pull/106#issuecomment-2241254458:

We could introduce a feature (force-gettext-system or assume-libc-contains-libintl or something) which always links with libc without checking if it has libintl. It'll be backed by an environment variable too. Will that be a workable solution for you?

In a way that’s how I expect the “gettext-system” feature to work. I think that’s also how it works with other crates: if I enable the “system-foo” feature it’s my responsibility to make sure it’s in the system.

In this crate the feature enables a kind of auto-detection (that’s failing in my case).

Need to look at a few other -sys crates to see if there other approaches as well.

Minoru avatar Aug 30 '24 18:08 Minoru