diff options
Diffstat (limited to 'src/arch/android/Makefile')
-rw-r--r-- | src/arch/android/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/arch/android/Makefile b/src/arch/android/Makefile new file mode 100644 index 0000000..e25f672 --- /dev/null +++ b/src/arch/android/Makefile @@ -0,0 +1,22 @@ + +# Bionic (android) does not have: +# - pthread barriers +# - pthread_[gs]etaffinity +# +# Typically see something like "aarch64-linux-android" +ifeq (android,$(ostype)) + USE_BIONIC := 1 + CFLAGS += -DPTHREAD_BIONIC + + LDFLAGS += -pie +# -lrt and -lpthread is in standard bionic library, no standalone library + LIBS := $(filter-out -lrt,$(LIBS)) + LIBS := $(filter-out -lpthread,$(LIBS)) + +# BIONIC does not support PI, barriers and has different files in +# include/. This means that currently, only these binaries will compile +# and link properly: +# - cyclictest +# - hackbench + sources := cyclictest.c hackbench.c +endif |