From f6e711c3778b743a50b7755305df1235a7aca420 Mon Sep 17 00:00:00 2001 From: mccakit Date: Fri, 3 Oct 2025 01:06:19 +0300 Subject: [PATCH] replace script with flags --- CMakeLists.txt | 2 +- android-project/android.export.sym | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 android-project/android.export.sym diff --git a/CMakeLists.txt b/CMakeLists.txt index 0db05bec5c..86e79e1b56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1615,7 +1615,7 @@ if(ANDROID) endif() endif() if(TARGET SDL3-static) - target_link_options(SDL3-static PRIVATE -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/../android-project/android.export.sym) + target_link_options(SDL3-static INTERFACE "-Wl,-u,JNI_OnLoad") endif() elseif(EMSCRIPTEN) diff --git a/android-project/android.export.sym b/android-project/android.export.sym deleted file mode 100644 index 5beaa534d9..0000000000 --- a/android-project/android.export.sym +++ /dev/null @@ -1,6 +0,0 @@ -{ - global: - SDL_main; - JNI_OnLoad; - local: *; -};