Skip to content

Commit

Permalink
Update GNUmakefile Android recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Feb 5, 2021
1 parent 9e2f5e7 commit 1be7990
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GNUmakefile-cross
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1be7990

Please sign in to comment.