diff options
author | Sebastian Ramacher <sramacher@debian.org> | 2017-11-12 18:29:02 +0100 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2017-11-14 10:34:46 -0800 |
commit | 50a77df1b7340a05e9c9099868a46b4b045b7bd4 (patch) | |
tree | 72c192283ac8de5bc2710e50e79eb52a155b6906 /va/drm | |
parent | ce1960eec8d94d0badb7ede2f80c5dd4829640e2 (diff) | |
download | libva-50a77df1b7340a05e9c9099868a46b4b045b7bd4.tar.gz |
va_drm: dlopen correct version of libva-x11
Determine the correct SONAME automatically.
Signed-off-by: Sebastian Ramacher <sramacher@debian.org>
Diffstat (limited to 'va/drm')
-rw-r--r-- | va/drm/Makefile.am | 1 | ||||
-rw-r--r-- | va/drm/va_drm_auth_x11.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/va/drm/Makefile.am b/va/drm/Makefile.am index c7ba3f6..f705d42 100644 --- a/va/drm/Makefile.am +++ b/va/drm/Makefile.am @@ -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 diff --git a/va/drm/va_drm_auth_x11.c b/va/drm/va_drm_auth_x11.c index 54e7402..bbb40e0 100644 --- a/va/drm/va_drm_auth_x11.c +++ b/va/drm/va_drm_auth_x11.c @@ -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; |