[Buildroot] [PATCH v3] cryptsetup: Add libintl for UCLIBC toolchain

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Nov 2 17:55:51 UTC 2013

Dear Clayton Shotwell,

On Fri, 1 Nov 2013 07:48:25 -0700, Clayton Shotwell wrote:
> Fixes autobuild error
> http://autobuild.buildroot.net/results/cc1a65b9554bc2ece1b3ea8b51cd805b9bda7e86/
> Adding libintl to the libraries list for cryptsetup when using a
> uclibc toolchain and locale support is enabled.
> Signed-off-by: Clayton Shotwell <clshotwe at rockwellcollins.com>
> ---
> Changes v2 -> v3:
>   - Adding BR2_NEEDS_GETTEXT_IF_LOCALE checks per the buildroot
>     manual (suggested by Gustavo)
> Changes v1 -> v2:
>   - Adding TARGET_LDFLAGS to make sure they are not dropped
> ---
>  package/cryptsetup/Config.in     |    1 +
>  package/cryptsetup/cryptsetup.mk |    7 ++++++-
>  2 files changed, 7 insertions(+), 1 deletion(-)

Applied to for-peter-2013.11, thanks.

Note that this patch is really a workaround for what is a deficiency of
the package itself. The configure.ac script properly detects that it's
not the C library that provides intl support, but the separate libintl
library. However, src/Makefile.am fails to add the proper @LIBINTL@
string to the _LDADD of the program that uses intl features. See the
end of
for details about this.

If you're interested, don't hesitate to report this problem upstream.

Best regards,

Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering

More information about the buildroot mailing list