summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/egl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/targets/egl/Makefile')
-rw-r--r--src/gallium/targets/egl/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/targets/egl/Makefile b/src/gallium/targets/egl/Makefile
index 017c1952141..92d971bab01 100644
--- a/src/gallium/targets/egl/Makefile
+++ b/src/gallium/targets/egl/Makefile
@@ -123,8 +123,12 @@ endif
# OpenGL state tracker
GL_CPPFLAGS := -I$(TOP)/src/mesa $(API_DEFINES)
-# cannot not link to $(GL_LIB) as the app might want GLES
+ifeq ($(SHARED_GLAPI),1)
+GL_SYS := $(DRI_LIB_DEPS) -l$(GLAPI_LIB)
+else
+# cannot link to $(GL_LIB) as the app might want GL or GLES
GL_SYS := $(DRI_LIB_DEPS)
+endif
GL_LIBS := $(TOP)/src/mesa/libmesagallium.a
# OpenVG state tracker