summaryrefslogtreecommitdiffstats
path: root/src/egl/main/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/Android.mk')
-rw-r--r--src/egl/main/Android.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/main/Android.mk b/src/egl/main/Android.mk
index a4a00f3bb35..97e4860211a 100644
--- a/src/egl/main/Android.mk
+++ b/src/egl/main/Android.mk
@@ -79,7 +79,12 @@ LOCAL_STATIC_LIBRARIES += libmesa_egl_dri2
# require i915_dri and/or i965_dri
LOCAL_REQUIRED_MODULES += \
$(addsuffix _dri, $(filter i915 i965, $(MESA_GPU_DRIVERS)))
+
+ifeq ($(shell echo "$(MESA_ANDROID_VERSION) >= 4.2" | bc),1)
+ LOCAL_SHARED_LIBRARIES += \
+ libsync
endif
+endif # MESA_BUILD_CLASSIC
ifeq ($(strip $(MESA_BUILD_GALLIUM)),true)