targets/egl: Fix linking with libdrm.
This commit is contained in:
parent
d3163912c1
commit
da495ee870
|
@ -24,7 +24,9 @@ common_CPPFLAGS := \
|
||||||
-I$(TOP)/src/gallium/auxiliary \
|
-I$(TOP)/src/gallium/auxiliary \
|
||||||
-I$(TOP)/src/gallium/drivers \
|
-I$(TOP)/src/gallium/drivers \
|
||||||
-I$(TOP)/src/gallium/include \
|
-I$(TOP)/src/gallium/include \
|
||||||
-I$(TOP)/src/gallium/winsys
|
-I$(TOP)/src/gallium/winsys \
|
||||||
|
$(LIBDRM_CFLAGS)
|
||||||
|
|
||||||
common_SYS :=
|
common_SYS :=
|
||||||
common_LIBS := \
|
common_LIBS := \
|
||||||
$(TOP)/src/gallium/drivers/identity/libidentity.a \
|
$(TOP)/src/gallium/drivers/identity/libidentity.a \
|
||||||
|
@ -41,11 +43,11 @@ egl_SYS := -lm $(DLOPEN_LIBS) -L$(TOP)/$(LIB_DIR) -lEGL
|
||||||
egl_LIBS := $(TOP)/src/gallium/state_trackers/egl/libegl.a
|
egl_LIBS := $(TOP)/src/gallium/state_trackers/egl/libegl.a
|
||||||
|
|
||||||
ifneq ($(findstring x11, $(EGL_PLATFORMS)),)
|
ifneq ($(findstring x11, $(EGL_PLATFORMS)),)
|
||||||
egl_SYS += -lX11 -lXext -lXfixes
|
egl_SYS += -lX11 -lXext -lXfixes $(LIBDRM_LIB)
|
||||||
egl_LIBS += $(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a
|
egl_LIBS += $(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a
|
||||||
endif
|
endif
|
||||||
ifneq ($(findstring kms, $(EGL_PLATFORMS)),)
|
ifneq ($(findstring drm, $(EGL_PLATFORMS)),)
|
||||||
egl_SYS += -ldrm
|
egl_SYS += $(LIBDRM_LIB)
|
||||||
endif
|
endif
|
||||||
ifneq ($(findstring fbdev, $(EGL_PLATFORMS)),)
|
ifneq ($(findstring fbdev, $(EGL_PLATFORMS)),)
|
||||||
egl_LIBS += $(TOP)/src/gallium/winsys/sw/fbdev/libfbdev.a
|
egl_LIBS += $(TOP)/src/gallium/winsys/sw/fbdev/libfbdev.a
|
||||||
|
|
Loading…
Reference in New Issue