summaryrefslogtreecommitdiff
path: root/src/egl/main
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-16 10:36:36 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-16 10:36:36 +0200
commitb8033a5651fbf6f82258d8f0e846cc7324d744da (patch)
treee33657f0900eaee5ea71052ece2aff43f6503341 /src/egl/main
parentc9aa3bbda44470c0a92c675abf4bbab83aba3fb7 (diff)
egl: Compile wayland-drm.a into libEGL independent of egl_dri2
Fixes egl_gallium when egl_dri2 is not enabled.
Diffstat (limited to 'src/egl/main')
-rw-r--r--src/egl/main/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/egl/main/Makefile b/src/egl/main/Makefile
index cb8f0551293..6c242557e7f 100644
--- a/src/egl/main/Makefile
+++ b/src/egl/main/Makefile
@@ -54,6 +54,10 @@ OBJECTS = $(SOURCES:.c=.o)
LOCAL_CFLAGS = -D_EGL_OS_UNIX=1
LOCAL_LIBS =
+ifneq ($(findstring wayland, $(EGL_PLATFORMS)),)
+LOCAL_LIBS += $(TOP)/src/egl/wayland/wayland-drm/libwayland-drm.a
+endif
+
# egl_dri2 and egl_glx are built-ins
ifeq ($(filter dri2, $(EGL_DRIVERS_DIRS)),dri2)
LOCAL_CFLAGS += -D_EGL_BUILT_IN_DRIVER_DRI2
@@ -61,9 +65,6 @@ LOCAL_LIBS += $(TOP)/src/egl/drivers/dri2/libegl_dri2.a
ifneq ($(findstring x11, $(EGL_PLATFORMS)),)
EGL_LIB_DEPS += $(XCB_DRI2_LIBS)
endif
-ifneq ($(findstring wayland, $(EGL_PLATFORMS)),)
-LOCAL_LIBS += $(TOP)/src/egl/wayland/wayland-drm/libwayland-drm.a
-endif
EGL_LIB_DEPS += $(LIBUDEV_LIBS) $(DLOPEN_LIBS) $(LIBDRM_LIB) $(WAYLAND_LIBS)
endif