freetype: fix cross-compilation (#48352)

This commit is contained in:
volth 2018-10-14 15:23:37 +00:00 committed by xeji
parent 2e7c992afa
commit a4118294e8

View File

@ -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";