diff options
| author | Ray San <raysan5@gmail.com> | 2017-09-29 13:57:00 +0200 |
|---|---|---|
| committer | Ray San <raysan5@gmail.com> | 2017-09-29 13:57:00 +0200 |
| commit | ccd6271a7f036e72e3192efcee4350e225f353ab (patch) | |
| tree | 8d48083853b471a1a1bc110d756c2c7bdad4c0d9 /src | |
| parent | c45eeb80245f52f694a33ada6212fa62e85d1206 (diff) | |
| download | raylib-ccd6271a7f036e72e3192efcee4350e225f353ab.tar.gz raylib-ccd6271a7f036e72e3192efcee4350e225f353ab.zip | |
Added some compiler flags for Android
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index 72f37b09..af36d0ec 100644 --- a/src/Makefile +++ b/src/Makefile @@ -213,7 +213,14 @@ ifeq ($(PLATFORM),PLATFORM_WEB) endif ifeq ($(PLATFORM),PLATFORM_ANDROID) + # Compiler flags for arquitecture CFLAGS += -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 + # Compilation functions attributes options + CFLAGS += -ffunction-sections -funwind-tables -fstack-protector-strong -fPIC + # Compiler options for the linker + CFLAGS += -Wa,--noexecstack -Wformat -Werror=format-security -no-canonical-prefixes + # Preprocessor macro definitions + CFLAGS += -DANDROID -DPLATFORM_ANDROID -D__ANDROID_API__=16 endif #CFLAGSEXTRA = -Wextra -Wmissing-prototypes -Wstrict-prototypes |
