Browse Source

replace script with flags

mccakit 1 week ago
parent
commit
f6e711c377
2 changed files with 1 additions and 7 deletions
  1. 1 1
      CMakeLists.txt
  2. 0 6
      android-project/android.export.sym

+ 1 - 1
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)

+ 0 - 6
android-project/android.export.sym

@@ -1,6 +0,0 @@
-{
-  global:
-    SDL_main;
-    JNI_OnLoad;
-  local: *;
-};