X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=Configurations%2F15-android.conf;h=10342ed5e3750d37161515604c22933a957dd5ed;hp=f9ad0833fafd70cf8405632f983405b74fb544ca;hb=3b1928fe64e36634e09482c721f4d3d0c10047a8;hpb=3453dbde7f0c44bcb97f85ee5291fc4fde0a45b2 diff --git a/Configurations/15-android.conf b/Configurations/15-android.conf index f9ad0833fa..10342ed5e3 100644 --- a/Configurations/15-android.conf +++ b/Configurations/15-android.conf @@ -94,6 +94,11 @@ . "/$tritools-4.9/prebuilt/$host"; $user{CC} = "clang" if ($user{CC} !~ m|clang|); $user{CROSS_COMPILE} = undef; + if (which("llvm-ar") =~ m|^$ndk/.*/prebuilt/([^/]+)/|) { + $user{AR} = "llvm-ar"; + $user{ARFLAGS} = [ "rs" ]; + $user{RANLIB} = ":"; + } } elsif (-f "$ndk/AndroidVersion.txt") { #"standalone toolchain" my $cc = $user{CC} // "clang"; # One can probably argue that both clang and gcc should be