freetype: fix build for structuredAttrs (#474082)

This commit is contained in:
Aleksana
2025-12-26 12:28:43 +00:00
committed by GitHub
+8 -6
View File
@@ -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;