Skip to content

Commit

Permalink
Update android.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
angerman committed Jan 17, 2022
1 parent a3c9d33 commit f4d0346
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions overlays/android.nix
Expand Up @@ -11,18 +11,20 @@ final: prev: prev.lib.optionalAttrs prev.stdenv.hostPlatform.isAndroid ({
'';
# my current thinking is that this is due to the android toolchain using r23, api30.
});
libffi = prev.libffi.overrideAttrs (_: {
libffi = prev.libffi.overrideAttrs ( old: {
dontDisableStatic = true;
configureFlags = old.configureFlags ++ [ "--disable-shared" ];

hardeningDisable = [ "fortify" "stackprotector" "format" ];
# see libiconv. We want to target a lower minsdk
postConfigure = ''
echo "#undef HAVE_MEMFD_CREATE" >> aarch64-unknown-linux-android/fficonfig.h
'';
});
gmp6 = (prev.gmp6.override { withStatic = true; }).overrideAttrs(_: {
gmp6 = (prev.gmp6.override { withStatic = true; }).overrideAttrs(old: {
hardeningDisable = [ "fortify" "stackprotector" "format" ];
configureFlags = old.configureFlags ++ [ "--disable-shared" ];
});
}) // prev.lib.optionalAttrs prev.stdenv.targetPlatform.isAndroid ({
bionic = prev.bionic.override { enableStatic = true; };
bionic = prev.bionic.override { enableStatic = true; enableShared = false; };
})

0 comments on commit f4d0346

Please sign in to comment.