From 4556c734700da2dd95d4f148d6929a537882bade Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 23 Jan 2014 13:12:26 -0800 Subject: loader: Use dlsym to get our udev symbols instead of explicit linking. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Steam links against libudev.so.0, while we're linking against libudev.so.1. The result is that the symbol names (which are the same in the two libraries) end up conflicting, and some of the usage of .so.1 calls the .so.0 bits, which have different internal structures, and segfaults happen. By using a dlopen() with RTLD_LOCAL, we can explicitly look for the symbols we want, while they get the symbols they want. Reviewed-by: Keith Packard Reviewed-by: Kristian Høgsberg Tested-by: Alexandre Demers Tested-by: Mike Lothian --- src/egl/main/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/egl/main/Makefile.am') diff --git a/src/egl/main/Makefile.am b/src/egl/main/Makefile.am index 60cb6006b50..e12aeae59b9 100644 --- a/src/egl/main/Makefile.am +++ b/src/egl/main/Makefile.am @@ -112,7 +112,7 @@ if HAVE_EGL_DRIVER_DRI2 AM_CFLAGS += -D_EGL_BUILT_IN_DRIVER_DRI2 AM_CFLAGS += -DHAVE_XCB_DRI2 libEGL_la_LIBADD += ../drivers/dri2/libegl_dri2.la -libEGL_la_LIBADD += $(LIBUDEV_LIBS) $(DLOPEN_LIBS) $(LIBDRM_LIBS) +libEGL_la_LIBADD += $(DLOPEN_LIBS) $(LIBDRM_LIBS) endif # Provide compatibility with scripts for the old Mesa build system for -- cgit v1.2.3