Home Explore Blog Models CI



nixpkgs

doc/hooks/libiconv.section.md
e37d9a2c45471023eb7ed9ebf73cb0ab66b60dce5b74fe8600000003000001c8
# libiconv, libintl {#libiconv-libintl}

A few libraries automatically add to `NIX_LDFLAGS` their library, making their symbols automatically available to the linker. This includes libiconv and libintl (gettext). This is done to provide compatibility between GNU Linux, where libiconv and libintl are bundled in, and other systems where that might not be the case. Sometimes, this behavior is not desired. To disable this behavior, set `dontAddExtraLibs`.

Chunks
054f517f (1st chunk of `doc/hooks/libiconv.section.md`)
Title: Configuring libiconv and libintl Automatic Linking
Summary
The `libiconv` and `libintl` (gettext) libraries are automatically added to `NIX_LDFLAGS`, making their symbols available to the linker. This behavior is intended for compatibility across different systems, mirroring how they are bundled in GNU Linux. If this automatic addition is not desired, it can be disabled by setting the `dontAddExtraLibs` variable.