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: *; -};