Adding a hack for gettext to cross-build with gcc+glibc in linux.

svn path=/nixpkgs/branches/stdenv-updates/; revision=18568
This commit is contained in:
Lluís Batlle i Rossell 2009-11-23 19:38:34 +00:00
parent c6b526495b
commit fce5b7fe78

View File

@ -10,6 +10,17 @@ stdenv.mkDerivation (rec {
configureFlags = "--disable-csharp";
# On cross building, gettext supposes that the wchar.h from libc
# does not fulfill gettext needs, so it tries to work with its
# own wchar.h file, which does not cope well with the system's
# wchar.h and stddef.h (gcc-4.3 - glibc-2.9)
preConfigure = ''
if test -n "$crossConfig"; then
echo gl_cv_func_wcwidth_works=yes > cachefile
configureFlags="$configureFlags --cache-file=`pwd`/cachefile"
fi
'';
meta = {
description = "GNU gettext, a well integrated set of translation tools and documentation";