Update GNUmakefile Android recipe

This commit is contained in:
Jeffrey Walton 2021-02-05 06:09:19 -05:00
parent 9e2f5e744e
commit 1be79900e0
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -113,10 +113,14 @@ endif
# Android cross-compile configuration.
# See http://www.cryptopp.com/wiki/Android_(Command_Line).
ifeq ($(IS_ANDROID),1)
CXXFLAGS += $(ANDROID_CXXFLAGS) -D__ANDROID_API__=$(ANDROID_API)
CPPFLAGS += -DANDROID -D__ANDROID_API__=$(ANDROID_API)
CXXFLAGS += $(ANDROID_CXXFLAGS)
CXXFLAGS += --sysroot=$(ANDROID_SYSROOT)
CXXFLAGS += -Wa,--noexecstack
LDFLAGS += -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
LDFLAGS += -Wl,--warn-shared-textrel -Wl,--fatal-warnings
# Source files copied into PWD for Android cpu-features
# setenv-android.sh does the copying. Its a dirty compile.
ANDROID_CPU_OBJ = cpu-features.o