From 7605ce853e2c9f458bf69fb15878ecdbd1f5a19a Mon Sep 17 00:00:00 2001 From: Oussama Teyib Date: Fri, 12 Sep 2025 04:36:11 +0000 Subject: [PATCH] Add note about debug symbols when building with CMake --- Working-for-Android.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Working-for-Android.md b/Working-for-Android.md index 1a9c77b..61c7d54 100644 --- a/Working-for-Android.md +++ b/Working-for-Android.md @@ -77,6 +77,9 @@ You can build raylib using either **CMake** or **Make**. Follow the steps below - After building, the static library `libraylib.a` will be located in `Build/raylib/` +> [!IMPORTANT] +> When using the NDK toolchain file, the output library always includes debug symbols, even in release mode. This is not an issue if you use the Android Gradle Plugin to package your APK. However, if you are packaging the APK manually, consider stripping unused symbols with NDK's `llvm-strip` before including the libraries in your release APK. + 2. **Using Make** - Navigate to the source folder: @@ -100,7 +103,6 @@ You can build raylib using either **CMake** or **Make**. Follow the steps below You might also find [this discussion](https://github.com/raysan5/raylib/issues/5114) helpful. - > [!WARNING] > Your Android device may have a 64-bit CPU, but the installed OS could still be 32-bit. Make sure the selected ABI matches your device architecture.