OSDN Git Service

va_drm: dlopen correct version of libva-x11
authorSebastian Ramacher <sramacher@debian.org>
Sun, 12 Nov 2017 17:29:02 +0000 (18:29 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 14 Nov 2017 18:34:46 +0000 (10:34 -0800)
Determine the correct SONAME automatically.

Signed-off-by: Sebastian Ramacher <sramacher@debian.org>
va/drm/Makefile.am
va/drm/va_drm_auth_x11.c

index c7ba3f6..f705d42 100644 (file)
@@ -46,6 +46,7 @@ source_h_priv = \
 if USE_X11
 source_c                       += va_drm_auth_x11.c
 AM_CPPFLAGS                    += $(X11_CFLAGS)
+AM_CPPFLAGS                    += -DLIBVA_MAJOR_VERSION=$(LIBVA_MAJOR_VERSION)
 endif
 
 noinst_LTLIBRARIES             = libva_drm.la
index 54e7402..bbb40e0 100644 (file)
@@ -28,8 +28,6 @@
 #include <X11/Xlib.h>
 #include "va_drm_auth_x11.h"
 
-#define LIBVA_MAJOR_VERSION 1
-
 typedef struct drm_auth_x11             DRMAuthX11;
 typedef struct drm_auth_x11_vtable      DRMAuthX11VTable;