Configurations/15-android.conf: Make sure that the NDK path is canonical
[openssl.git] / Configurations / 15-android.conf
index ddd642a117a5c66c859c104ca53a4e97aa618c13..89c5d0ad894db2a636bc12a21aad60f62a3e889d 100644 (file)
@@ -4,6 +4,8 @@
 # comments below...
 
 {
+    use File::Spec::Functions;
+
     my $android_ndk = {};
     my %triplet = (
         arm    => "arm-linux-androideabi",
@@ -22,6 +24,7 @@
 
             my $ndk = $ENV{ANDROID_NDK};
             die "\$ANDROID_NDK is not defined"  if (!$ndk);
+            $ndk = canonpath($ndk);
             die "\$ANDROID_NDK=$ndk is invalid" if (!-d "$ndk/platforms");
 
             my $ndkver = undef;