mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-13 18:49:10 -04:00
[rcore][android] Replace android_fopen() with linker --wrap=fopen (#5605)
* ANDROID: replace android_fopen with linker --wrap=fopen * ANDROID: add --wrap=fopen linker flag to src/Makefile
This commit is contained in:
@ -75,6 +75,12 @@ if (${PLATFORM} MATCHES "Web")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (${PLATFORM} MATCHES "Android")
|
||||
# Wrap fopen at link time so all code (including third-party libs) goes
|
||||
# through __wrap_fopen, which handles Android APK asset loading
|
||||
target_link_options(raylib INTERFACE -Wl,--wrap=fopen)
|
||||
endif()
|
||||
|
||||
set_target_properties(raylib PROPERTIES
|
||||
PUBLIC_HEADER "${raylib_public_headers}"
|
||||
VERSION ${PROJECT_VERSION}
|
||||
|
||||
Reference in New Issue
Block a user