mesa/src
Emil Velikov 5c9a9ba983 gallium/dri: always link against shared glapi
In the early days of Xorg and Mesa we had multiple providers of the
GLAPI. All of those were the ones responsible for dlopening the DRI
module. Hence it was perfectly fine, and actually expected, for the DRI
modules to have unresolved symbols.

Since then we've moved the API to a separate shared library and no other
libraries provide the symbols.

Here comes the picky part:
It's possible that one uses old Xorg (where libglx.so provides the
GLAPI) and new Mesa (with DRI modules linking against libglapi.so).

That should still work, since the the libglx.so symbols will take
precedence over the libglapi.so ones.

I've verified this while running 1.14 series Xorg alongside this (and
next) patch.

It may seem a bit fragile, but that's of reasonably OK since all of the
affected Xorg versions have been EOL for years.

The final one being the 1.14 series, which saw its final bug fix release
1.14.7 in June 2014.

To ensure that the binaries do not have unresolved symbols add
-no-undefined and $(LD_NO_UNDEFINED), just like we do everywhere else
throughout mesa.

Cc: mesa-stable@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98428
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
(cherry picked from commit 79a26b663a)
2017-05-12 21:54:55 +03:00
..
amd radv/wsi: report presentation error per image request 2017-05-12 21:54:55 +03:00
compiler nir: Pick just the channels we want for bitmap and drawpixels lowering. 2017-05-12 21:54:54 +03:00
egl egl/platform/drm: Don't take display ownership until gbm is initialized 2017-05-12 21:54:55 +03:00
gallium gallium/dri: always link against shared glapi 2017-05-12 21:54:55 +03:00
gbm gbm/dri: Flush after unmap 2017-04-12 11:32:18 +01:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx glx/glvnd: Fix GLXdispatchIndex sorting 2017-02-23 19:34:59 +00:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel anv: vkBindImageMemory() should return VK_ERROR_OUT_OF_{HOST,DEVICE}_MEMORY on failure 2017-05-12 21:54:55 +03:00
loader loader: Move non-error message to debug level 2017-04-13 13:41:51 +01:00
mapi mesa: move glMultiDrawArrays to vbo and fix error handling 2017-04-26 12:34:23 +03:00
mesa i965/vec4: don't modify regioning parameters to the sources of DF align1 instructions 2017-05-12 21:54:55 +03:00
util ralloc: Make sure ralloc() allocations match malloc()'s alignment. 2017-03-16 01:33:52 +00:00
vulkan vulkan/wsi: Improve the DRI3 error message 2017-03-16 01:34:01 +00:00
Makefile.am vulkan: automake: do not use EXTRA_DIST in a conditional 2017-01-18 13:41:32 +00:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00