diff --git a/src/Makefile b/src/Makefile index 8f107a749..4771dcb65 100644 --- a/src/Makefile +++ b/src/Makefile @@ -607,6 +607,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