From c91bb2ed64fdfefdd71d22bff5daf5259a353c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 20 Oct 2012 10:52:09 +0200 Subject: [PATCH] freetype: making it crossbuild fine for mips. I think at some point the unwrapped build system gcc got into the PATH, and that breaks some cross-builds, because the configure scripts now choose the unwrapped gcc instead of the wrapped. I'll search when it happened and how to overcome this better. --- pkgs/development/libraries/freetype/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/freetype/default.nix b/pkgs/development/libraries/freetype/default.nix index b8a73b97f46..a2d14be5001 100644 --- a/pkgs/development/libraries/freetype/default.nix +++ b/pkgs/development/libraries/freetype/default.nix @@ -31,6 +31,13 @@ stdenv.mkDerivation rec { ln -s freetype2/freetype $out/include/freetype ''; + crossAttrs = { + # Somehow it calls the unwrapped gcc, "i686-pc-linux-gnu-gcc", instead + # of gcc. I think it's due to the unwrapped gcc being in the PATH. I don't + # know why it's on the PATH. + configureFlags = "--disable-static CC_BUILD=gcc"; + }; + meta = { description = "A font rendering engine"; homepage = http://www.freetype.org/;