freetype: fix build for structuredAttrs (#474082)
This commit is contained in:
@@ -82,13 +82,15 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"--enable-freetype-config"
|
||||
];
|
||||
|
||||
# native compiler to generate building tool
|
||||
CC_BUILD = "${buildPackages.stdenv.cc}/bin/cc";
|
||||
env = {
|
||||
# native compiler to generate building tool
|
||||
CC_BUILD = "${buildPackages.stdenv.cc}/bin/cc";
|
||||
|
||||
# The asm for armel is written with the 'asm' keyword.
|
||||
CFLAGS =
|
||||
lib.optionalString stdenv.hostPlatform.isAarch32 "-std=gnu99"
|
||||
+ lib.optionalString stdenv.hostPlatform.is32bit " -D_FILE_OFFSET_BITS=64";
|
||||
# The asm for armel is written with the 'asm' keyword.
|
||||
CFLAGS =
|
||||
lib.optionalString stdenv.hostPlatform.isAarch32 "-std=gnu99"
|
||||
+ lib.optionalString stdenv.hostPlatform.is32bit " -D_FILE_OFFSET_BITS=64";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user