summaryrefslogtreecommitdiffstats
path: root/Android.common.mk
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-11-23 17:04:25 +0000
committerEric Engestrom <[email protected]>2019-06-21 11:35:39 +0000
commit6a9dd62882b9e2b57394a192cc66e886128df026 (patch)
tree26cd400d6690085a87adc0c14e25d4fb9bd85230 /Android.common.mk
parent1cbe2ad39442a48b96fff40a3a30c74ac5e4e4e6 (diff)
drisw: move build logic to build systems
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'Android.common.mk')
-rw-r--r--Android.common.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Android.common.mk b/Android.common.mk
index 36d97c52dd1..327f13f5a38 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -98,6 +98,11 @@ ifeq ($(filter 5 6 7 8 9, $(MESA_ANDROID_MAJOR_VERSION)),)
LOCAL_CFLAGS += -DHAVE_TIMESPEC_GET
endif
+# Android's libc began supporting shm in Oreo
+ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo true),true)
+LOCAL_CFLAGS += -DHAVE_SYS_SHM_H
+endif
+
ifeq ($(strip $(MESA_ENABLE_ASM)),true)
ifeq ($(TARGET_ARCH),x86)
LOCAL_CFLAGS += \