When 8bf5b467 was added, it broke the deployment of static builds on Android, by demoting the check for static-ness past the check for Android. This swaps the logic around so the static check takes precedence again.
cc: @vkrause