summaryrefslogtreecommitdiffstats
path: root/src/arch/bionic/Makefile
blob: e25f67203e5ab33444d55a939f3ded8279d13457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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