From 1f0cc57ec7e4c56baf013ecaaab2050282b0733b Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 27 May 2018 19:06:14 +0200 Subject: Corrected issue with compiler param Added android_native_app_glue module to raylib compilation instead of compiling it as static lib at apk generation. --- src/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index c83a62ef..c05e74bb 100644 --- a/src/Makefile +++ b/src/Makefile @@ -309,14 +309,14 @@ endif ifeq ($(PLATFORM),PLATFORM_ANDROID) # Compiler flags for arquitecture (only ARM, not ARM64) #CFLAGS += -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 - CFLAGS += -target aarch64 -mfix-cortex-a53-835769 -mgeneral-regs-only + CFLAGS += -target aarch64 -mfix-cortex-a53-835769 # Compilation functions attributes options CFLAGS += -ffunction-sections -funwind-tables -fstack-protector-strong -fPIE -fPIC # Compiler options for the linker # -Werror=format-security CFLAGS += -Wa,--noexecstack -Wformat -no-canonical-prefixes # Preprocessor macro definitions - CFLAGS += -DANDROID -DPLATFORM_ANDROID -D__ANDROID_API__=21 + CFLAGS += -DANDROID -DPLATFORM_ANDROID -D__ANDROID_API__=21 -DMAL_NO_OSS endif # Define required compilation flags for raylib SHARED lib @@ -416,6 +416,10 @@ ifeq ($(INCLUDE_AUDIO_MODULE),TRUE) endif endif +ifeq ($(PLATFORM),PLATFORM_ANDROID) + OBJS += external/android/native_app_glue/android_native_app_glue.o +endif + # Default target entry all: raylib -- cgit v1.2.3