mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-21 06:39:36 +02:00
Fix Android compilation
1. Define GIT_VERSION preprocessor variable in jni/Android.mk error: use of undeclared identifier 'GIT_VERSION' 2. Add -llog linker dependency for Android logging functions error: undefined reference to '__android_log_print' 3. Prevent Clang error providing explicit "%s" format for snprintf error: format string is not a string literal
This commit is contained in:
+2
-2
@@ -23,8 +23,8 @@ CORE_DIR = ..
|
||||
include $(CORE_DIR)/Makefile.common
|
||||
|
||||
LOCAL_SRC_FILES += $(SOURCES_C)
|
||||
LOCAL_CFLAGS += -O2 -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DNDEBUG=1 $(INCFLAGS)
|
||||
LOCAL_CFLAGS += -O2 -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DNDEBUG=1 -DGIT_VERSION=\"$(GIT_VERSION)\" $(INCFLAGS)
|
||||
|
||||
LOCAL_LDLIBS += -lz
|
||||
LOCAL_LDLIBS += -lz -llog
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
Reference in New Issue
Block a user