From 71f2b3171e8b94b0fbdc7fab2d7ca4ea66edec2b Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 19 Oct 2018 16:03:28 +0200 Subject: [PATCH] Configurations/15-android.conf: fix implicit __ANDROID_API__ handling. 03ad7c009e16a233c733098db3169c560142ccd3 failed if one didn't pass explicit -D__ANDROID_API__=N :-( Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/7443) --- Configurations/15-android.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Configurations/15-android.conf b/Configurations/15-android.conf index a6b0d7a06d..f9ad0833fa 100644 --- a/Configurations/15-android.conf +++ b/Configurations/15-android.conf @@ -73,6 +73,8 @@ die "no $ndk/platforms/android-$api" if ($#platforms < 0); $sysroot = "@platforms[$#platforms]/arch-$arch"; + $sysroot =~ m|/android-([0-9]+)/arch-$arch|; + $api = $1; } die "no sysroot=$sysroot" if (!-d $sysroot); -- 2.25.1