diff options
author | volth <volth@webmaster.ms> | 2018-10-14 15:23:37 +0000 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-10-14 17:23:37 +0200 |
commit | a4118294e84ccc37b13f6fb19236106a4b2114ad (patch) | |
tree | 06bc8e4ac5b18ada3e529393bf7a7b99085e5773 | |
parent | 2e7c992afaeb26bd0975d0e82217023932cecd90 (diff) | |
download | nixpkgs-a4118294e84ccc37b13f6fb19236106a4b2114ad.tar nixpkgs-a4118294e84ccc37b13f6fb19236106a4b2114ad.tar.gz nixpkgs-a4118294e84ccc37b13f6fb19236106a4b2114ad.tar.bz2 nixpkgs-a4118294e84ccc37b13f6fb19236106a4b2114ad.tar.lz nixpkgs-a4118294e84ccc37b13f6fb19236106a4b2114ad.tar.xz nixpkgs-a4118294e84ccc37b13f6fb19236106a4b2114ad.tar.zst nixpkgs-a4118294e84ccc37b13f6fb19236106a4b2114ad.zip |
freetype: fix cross-compilation (#48352)
-rw-r--r-- | pkgs/development/libraries/freetype/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/freetype/default.nix b/pkgs/development/libraries/freetype/default.nix index fce052aeb22..5a11d03c591 100644 --- a/pkgs/development/libraries/freetype/default.nix +++ b/pkgs/development/libraries/freetype/default.nix @@ -1,4 +1,5 @@ { stdenv, fetchurl +, buildPackages , pkgconfig, which, makeWrapper , zlib, bzip2, libpng, gnumake, glib @@ -50,6 +51,9 @@ in stdenv.mkDerivation rec { configureFlags = [ "--disable-static" "--bindir=$(dev)/bin" ]; + # native compiler to generate building tool + CC_BUILD = "${buildPackages.stdenv.cc}/bin/cc"; + # The asm for armel is written with the 'asm' keyword. CFLAGS = optionalString stdenv.isAarch32 "-std=gnu99"; |