mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-11 09:39:09 -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:
@ -614,6 +614,9 @@ ifeq ($(TARGET_PLATFORM),PLATFORM_ANDROID)
|
||||
LDFLAGS += -Lsrc
|
||||
# Avoid unresolved symbol pointing to external main()
|
||||
LDFLAGS += -Wl,-undefined,dynamic_lookup
|
||||
# Wrap fopen at link time so all code (including third-party libs) goes
|
||||
# through __wrap_fopen, which handles Android APK asset loading
|
||||
LDFLAGS += -Wl,--wrap=fopen
|
||||
endif
|
||||
|
||||
# Define libraries required on linking: LDLIBS
|
||||
|
||||
Reference in New Issue
Block a user