Skip to content

Commit 4031849

Browse files
committed
Revert "android: support Google Play 16 kiB page size requirement"
This reverts commit 6fd9f47. If you need to support the Google Play 16 kiB page size requirement, the recommendation is to use NDK r28c or newer, which automatically aligns binaries correctly.
1 parent 5b84728 commit 4031849

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ if(SDLNET_BUILD_SHARED_LIBS)
126126
target_link_libraries(${sdl3_net_target_name} PRIVATE SDL3::SDL3-shared)
127127
endif()
128128
sdl_add_warning_options(${sdl3_net_target_name} WARNING_AS_ERROR ${SDLNET_WERROR})
129-
sdl_add_platform_link_options(${sdl3_net_target_name})
130129
if(WIN32)
131130
if(SDLNET_BUILD_SHARED_LIBS)
132131
target_sources(${sdl3_net_target_name} PRIVATE
@@ -297,7 +296,6 @@ if(SDLNET_SAMPLES)
297296
add_executable(${TARGET} ${ARGN})
298297
endif()
299298
sdl_add_warning_options(${TARGET} WARNING_AS_ERROR ${SDLTTF_WERROR})
300-
sdl_add_platform_link_options(${TARGET})
301299
sdl_target_link_options_no_undefined(${TARGET})
302300
target_link_libraries(${TARGET} PRIVATE SDL3_net::${sdl3_net_target_name})
303301
target_link_libraries(${TARGET} PRIVATE ${sdl3_target_name})

cmake/PrivateSdlFunctions.cmake

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,6 @@ function(sdl_add_warning_options TARGET)
321321
endif()
322322
endfunction()
323323

324-
function(sdl_add_platform_link_options TARGET)
325-
if(ANDROID)
326-
target_link_options(${TARGET} PRIVATE "-Wl,-z,max-page-size=16384")
327-
target_link_options(${TARGET} PRIVATE "-Wl,-z,common-page-size=16384")
328-
endif()
329-
endfunction()
330-
331324
function(sdl_no_deprecated_errors TARGET)
332325
check_c_compiler_flag(-Wno-error=deprecated-declarations HAVE_WNO_ERROR_DEPRECATED_DECLARATIONS)
333326
if(HAVE_WNO_ERROR_DEPRECATED_DECLARATIONS)

0 commit comments

Comments
 (0)