OSDN Git Service

glx: Don't hard-code the name "libGL.so.1" in driOpenDriver (v3)
authorKyle Brenneman <kbrenneman@nvidia.com>
Mon, 28 Sep 2015 18:12:05 +0000 (12:12 -0600)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 Oct 2015 13:49:07 +0000 (14:49 +0100)
commitac75afff8817099b841b81b973b8a9419252252e
treebd2451b96ae7edbe48439a8985e0644cdcecb5da
parentde936892dbcc4af0aa2b9abc98dc1d92b9dd64f3
glx: Don't hard-code the name "libGL.so.1" in driOpenDriver (v3)

Add a macro GL_LIB_NAME to hold the filename that configure comes up with
based on the --with-gl-lib-name and --enable-mangling options.

In driOpenDriver, use the GL_LIB_NAME macro instead of hard-coding
"libGL.so.1".

v2: Add an #ifndef/#define for GL_LIB_NAME so that non-autoconf builds will
    work.
v3: Fix the library filename in the Makefile.

Signed-off-by: Kyle Brenneman <kbrenneman@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit d35391cfda13afdb19a47003af260e258575ef45)
src/glx/Makefile.am
src/glx/dri_common.c