diff options
| author | Ray <[email protected]> | 2018-05-27 19:06:14 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-05-27 19:06:14 +0200 |
| commit | 1f0cc57ec7e4c56baf013ecaaab2050282b0733b (patch) | |
| tree | 2465fe1eb8fd58468f33cd8f11823fa5c15a6911 /src | |
| parent | f89afaa335fef6cb5f40167436c09d5df6dd4126 (diff) | |
| download | raylib-1f0cc57ec7e4c56baf013ecaaab2050282b0733b.tar.gz raylib-1f0cc57ec7e4c56baf013ecaaab2050282b0733b.zip | |
Corrected issue with compiler param
Added android_native_app_glue module to raylib compilation instead of
compiling it as static lib at apk generation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
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 |
