Making kbd build in armv5tel-linux. gcc 4.4.3 issues a warning with it, and kbd was compiled with -Werror.

I switch off -Werror in armv5tel-linux.


svn path=/nixpkgs/branches/stdenv-updates/; revision=19735
This commit is contained in:
Lluís Batlle i Rossell 2010-01-29 21:30:09 +00:00
parent 64f0d74319
commit 2dfeeb47bb

View file

@ -10,6 +10,11 @@ stdenv.mkDerivation rec {
buildInputs = [ bison flex autoconf automake ];
# We get a warning in armv5tel-linux, so we disable -Werror in it
patchPhase = if (stdenv.system == "armv5tel-linux") then ''
sed -i s/-Werror// src/Makefile.am
'' else "";
# Grrr, kbd 1.15.1 doesn't include a configure script.
preConfigure = "autoreconf";