SDL: Fixed bug #5310: Android, Undefined reference to AAssetManager_fromJava

From f18571120367077b25100f8e3c9ddb9e36cefb94 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Tue, 8 Feb 2022 16:18:01 +0100
Subject: [PATCH] Fixed bug #5310: Android, Undefined reference to
 AAssetManager_fromJava

---
 android-project/app/jni/src/Android.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android-project/app/jni/src/Android.mk b/android-project/app/jni/src/Android.mk
index 1adcb6e9aa5..04e006ae9d6 100644
--- a/android-project/app/jni/src/Android.mk
+++ b/android-project/app/jni/src/Android.mk
@@ -13,6 +13,6 @@ LOCAL_SRC_FILES := YourSourceHere.c
 
 LOCAL_SHARED_LIBRARIES := SDL2
 
-LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
+LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid
 
 include $(BUILD_SHARED_LIBRARY)