diff options
author | Christopher James Halse Rogers <[email protected]> | 2011-02-03 11:19:32 +1100 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-02-11 18:31:05 -0800 |
commit | d1e28b22673777fe1290cda899abf73aad02e4aa (patch) | |
tree | 27333db1d1d37900f19c63c5754e966ad2a0624a /configs/linux-dri-xcb | |
parent | b5dc40710d0e5edffb9f673dfbf26df4d0043eef (diff) |
mesa: Optionally build a dricore support library (v3)
This an adds --enable-shared-dricore option to configure. When enabled,
DRI modules will link against a shared copy of the common mesa routines
rather than statically linking these.
This saves about 30MB on disc with a full complement of classic DRI
drivers.
v2: Only enable with a gcc-compatible compiler that handles rpath
Handle DRI_CFLAGS without filter-out magic
Build shared libraries with the full mklib voodoo
Fix typos
v3: Resolve conflicts with talloc removal patches
Signed-off-by: Christopher James Halse Rogers <[email protected]>
Diffstat (limited to 'configs/linux-dri-xcb')
-rw-r--r-- | configs/linux-dri-xcb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configs/linux-dri-xcb b/configs/linux-dri-xcb index 8092a048d7c..7518080703b 100644 --- a/configs/linux-dri-xcb +++ b/configs/linux-dri-xcb @@ -41,9 +41,11 @@ MESA_ASM_SOURCES = # Library/program dependencies EXTRA_LIB_PATH=$(shell pkg-config --libs-only-L x11) +MESA_MODULES = $(TOP)/src/mesa/libmesa.a + LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm) LIBDRM_LIB = $(shell pkg-config --libs libdrm) -DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB) +DRI_LIB_DEPS = $(MESA_MODULES) $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB) GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \ $(LIBDRM_LIB) $(shell pkg-config --libs xcb) $(shell pkg-config --libs x11-xcb) $(shell pkg-config --libs xcb-glx) |