diff options
author | Maarten Lankhorst <[email protected]> | 2012-11-16 18:50:57 +0100 |
---|---|---|
committer | Maarten Lankhorst <[email protected]> | 2012-11-16 18:50:57 +0100 |
commit | 4f0537e645f9c34e305f2808c70eafbbc1c7689c (patch) | |
tree | 3251e18ec93257bd4f1d6bf60459b71aa129abc1 /src/gallium/targets/egl-static | |
parent | 6346214f055126d421a20c40056e3abe8ce1f9f3 (diff) |
[PATCH] makefiles: use configured name for -ldrm* where possible
For precise lts support I had to do some magic with the library names, which works fine
as long as the libraries from pkg-config are used.
The parts with src/gallium/targets/va-*/Makefile will not apply on the master branch,
but do apply to the 9.0 branch.
NOTE: This is a candidate for the 9.0 branch.
Signed-off-by: Maarten Lankhorst <[email protected]>
Acked-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/gallium/targets/egl-static')
-rw-r--r-- | src/gallium/targets/egl-static/Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/targets/egl-static/Makefile b/src/gallium/targets/egl-static/Makefile index f05c81d1959..08626a9a80d 100644 --- a/src/gallium/targets/egl-static/Makefile +++ b/src/gallium/targets/egl-static/Makefile @@ -48,17 +48,17 @@ egl_SYS += $(LIBUDEV_LIBS) $(DLOPEN_LIBS) -lEGL -lm -lpthread ifneq ($(findstring x11, $(EGL_PLATFORMS)),) egl_CPPFLAGS += $(LIBDRM_CFLAGS) egl_LIBS += $(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a -egl_SYS += -lX11 -lXext -lXfixes $(LIBDRM_LIB) +egl_SYS += -lX11 -lXext -lXfixes $(LIBDRM_LIBS) endif ifneq ($(findstring wayland, $(EGL_PLATFORMS)),) egl_CPPFLAGS += $(LIBDRM_CFLAGS) egl_LIBS += $(TOP)/src/gallium/winsys/sw/wayland/libws_wayland.a egl_LIBS += $(TOP)/src/egl/wayland/wayland-drm/.libs/libwayland-drm.a -egl_SYS += $(LIBDRM_LIB) $(WAYLAND_LIBS) +egl_SYS += $(LIBDRM_LIBS) $(WAYLAND_LIBS) endif ifneq ($(findstring drm, $(EGL_PLATFORMS)),) egl_CPPFLAGS += $(LIBDRM_CFLAGS) -egl_SYS += $(LIBDRM_LIB) -lgbm +egl_SYS += $(LIBDRM_LIBS) -lgbm endif ifneq ($(findstring fbdev, $(EGL_PLATFORMS)),) egl_LIBS += $(TOP)/src/gallium/winsys/sw/fbdev/libfbdev.a @@ -93,7 +93,7 @@ egl_CPPFLAGS += -D_EGL_PIPE_I915=1 egl_LIBS += \ $(TOP)/src/gallium/winsys/i915/drm/libi915drm.a \ $(TOP)/src/gallium/drivers/i915/libi915.a -egl_SYS += -ldrm_intel +egl_SYS += $(INTEL_LIBS) endif # nouveau @@ -105,7 +105,7 @@ egl_LIBS += \ $(TOP)/src/gallium/drivers/nv50/libnv50.a \ $(TOP)/src/gallium/drivers/nvc0/libnvc0.a \ $(TOP)/src/gallium/drivers/nouveau/libnouveau.a -egl_SYS += -ldrm_nouveau +egl_SYS += $(NOUVEAU_LIBS) endif # r300 @@ -115,7 +115,7 @@ egl_CPPFLAGS += -D_EGL_PIPE_R300=1 egl_LIBS += \ $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \ $(TOP)/src/gallium/drivers/r300/libr300.a -egl_SYS += -ldrm_radeon +egl_SYS += $(RADEON_LIBS) endif endif @@ -126,7 +126,7 @@ egl_CPPFLAGS += -D_EGL_PIPE_R600=1 egl_LIBS += \ $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \ $(TOP)/src/gallium/drivers/r600/libr600.a -egl_SYS += -ldrm_radeon +egl_SYS += $(RADEON_LIBS) endif endif @@ -137,7 +137,7 @@ egl_CPPFLAGS += -D_EGL_PIPE_RADEONSI=1 egl_LIBS += \ $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \ $(TOP)/src/gallium/drivers/radeonsi/libradeonsi.a -egl_SYS += -ldrm_radeon +egl_SYS += $(RADEON_LIBS) endif endif |