aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/Makefile.am')
-rw-r--r--src/glx/Makefile.am19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am
index d65fb816256..5154a23ae06 100644
--- a/src/glx/Makefile.am
+++ b/src/glx/Makefile.am
@@ -46,7 +46,6 @@ AM_CFLAGS = \
$(EXTRA_DEFINES_XF86VIDMODE) \
-D_REENTRANT \
-DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" \
- -DGL_LIB_NAME=\"lib@[email protected]\" \
$(DEFINES) \
$(LIBDRM_CFLAGS) \
$(DRI2PROTO_CFLAGS) \
@@ -146,6 +145,22 @@ SUBDIRS += apple
libglx_la_LIBADD += $(builddir)/apple/libappleglx.la
endif
+if USE_LIBGLVND_GLX
+AM_CFLAGS += \
+ -DGL_LIB_NAME=\"lib@[email protected]\" \
+ $(GLVND_CFLAGS)
+
+libglx_la_SOURCES += \
+ glxglvnd.c \
+ g_glxglvnddispatchfuncs.c
+
+GL_LIB_VERSION=0
+else
+AM_CFLAGS += \
+ -DGL_LIB_NAME=\"lib@[email protected]\"
+GL_LIB_VERSION=1:2
+endif
+
GL_LIBS = \
libglx.la \
$(top_builddir)/src/mapi/glapi/libglapi.la \
@@ -154,7 +169,7 @@ GL_LIBS = \
GL_LDFLAGS = \
-no-undefined \
- -version-number 1:2 \
+ -version-number $(GL_LIB_VERSION) \
$(BSYMBOLIC) \
$(GC_SECTIONS) \
$(LD_NO_UNDEFINED)