freetype: fix build for structuredAttrs

This commit is contained in:
Stefan Frijters
2025-12-25 12:48:32 +01:00
parent 39975b7471
commit 8a29c1a49d
+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;