blob: 410d2c9c7c372463002db2951e39fc4ee1e83eb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Bionic (android) does not have:
# - pthread barriers
# - pthread_[gs]etaffinity
#
# Typically see something like "aarch64-linux-android"
ifeq (android,$(ostype))
USE_BIONIC := 1
CFLAGS += -DNO_PTHREAD_BARRIER
CFLAGS += -DNO_PTHREAD_SETAFFINITY
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
# - hwlatdetect
sources := cyclictest.c hackbench.c hwlatdetect.c
endif
|