Skip to content

Commit 3010f1d

Browse files
committed
Update android.nix
1 parent d1439f9 commit 3010f1d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

overlays/android.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,20 @@ final: prev: prev.lib.optionalAttrs prev.stdenv.hostPlatform.isAndroid ({
1111
'';
1212
# my current thinking is that this is due to the android toolchain using r23, api30.
1313
});
14-
libffi = prev.libffi.overrideAttrs (_: {
14+
libffi = prev.libffi.overrideAttrs ( old: {
1515
dontDisableStatic = true;
16+
configureFlags = old.configureFlags ++ [ "--disable-shared" ];
1617

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

0 commit comments

Comments
 (0)