@@ -67,7 +67,10 @@ rec {
67 cc = binaries;
67 cc = binaries;
68 bintools = binutils;
68 bintools = binutils;
69 libc = targetAndroidndkPkgs.libraries;
69 libc = targetAndroidndkPkgs.libraries;
70+ extraBuildCommands = ''
71+ echo "-D__ANDROID_API__=${targetPlatform.sdkVer}" >> $out/nix-support/cc-cflags
70− extraBuildCommands = lib.optionalString targetPlatform.isAarch32 (let
73+ + lib.optionalString targetPlatform.isAarch32 (let
71 p = targetPlatform.platform.gcc or {}
74 p = targetPlatform.platform.gcc or {}
72 // targetPlatform.parsed.abi;
75 // targetPlatform.parsed.abi;
73 flags = lib.concatLists [
76 flags = lib.concatLists [