freetype: fix cross-compilation (#48352)
This commit is contained in:
parent
2e7c992afa
commit
a4118294e8
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv, fetchurl
|
||||||
|
, buildPackages
|
||||||
, pkgconfig, which, makeWrapper
|
, pkgconfig, which, makeWrapper
|
||||||
, zlib, bzip2, libpng, gnumake, glib
|
, zlib, bzip2, libpng, gnumake, glib
|
||||||
|
|
||||||
@ -50,6 +51,9 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = [ "--disable-static" "--bindir=$(dev)/bin" ];
|
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.
|
# The asm for armel is written with the 'asm' keyword.
|
||||||
CFLAGS = optionalString stdenv.isAarch32 "-std=gnu99";
|
CFLAGS = optionalString stdenv.isAarch32 "-std=gnu99";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user