mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 01:28:07 +02:00
build: Don't overlink gallium xlib target
Currently gallium's xlib target will fail to link due to multiple
definitions of all the symbols in libmesautil, this only shows up in
autotools, and not in meson due to differences in the way that meson and
autotools handle linking static archives into static archives. Autotools
uses -Wl,--whole-archive implicitly, meson requires this behavior to be
opted-into. The solution is just to remove libmesautils from the
libgl-xlib target, since it will get all of those symbols form
libmesagallium.
I've dropped the link from meson as well, it doesn't seem to hurt
anything and should make linking just a little faster.
Fixes: 8396043f30
("Replace uses of _mesa_bitcount with util_bitcount")
bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107923
Tested-by: Brian Paul <brianp@vmware.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
Cc: Sergii Romantsov<sergii.romantsov@globallogic.com>
This commit is contained in:
parent
3acc18fcf7
commit
7f08bcb73f
2 changed files with 1 additions and 2 deletions
|
|
@ -62,7 +62,6 @@ lib@GL_LIB@_la_LIBADD = \
|
|||
$(top_builddir)/src/mapi/glapi/libglapi.la \
|
||||
$(top_builddir)/src/mesa/libmesagallium.la \
|
||||
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
|
||||
$(top_builddir)/src/util/libmesautil.la \
|
||||
$(SHARED_GLAPI_LIB) \
|
||||
$(GL_LIB_DEPS) \
|
||||
$(CLOCK_LIB) \
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ libgl = shared_library(
|
|||
link_depends : gallium_xlib_link_depends,
|
||||
link_with : [
|
||||
libxlib, libws_xlib, libglapi_static,
|
||||
libgallium, libmesa_util, libmesa_gallium, gallium_xlib_link_with,
|
||||
libgallium, libmesa_gallium, gallium_xlib_link_with,
|
||||
],
|
||||
dependencies : [dep_thread, dep_clock, dep_unwind, driver_swrast, driver_swr],
|
||||
install : true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue