targets/dri: allow duplicated symbols
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 2 Jul 2014 11:06:41 +0000 (12:06 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 2 Jul 2014 11:25:05 +0000 (12:25 +0100)
With the inclusion of xmlconfig in the loader we're providing dri* symbols
which are already available in libdricommon.la. This leads to a build
break due to the multiple definitions.

Temporary allow multiple definitions, until we come with a better solution.

Reported-by: Laurent Carlier <lordheavym@gmail.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/targets/dri/Makefile.am

index 88242a97fa650f636b82d25ca683e759c5bd75e0..cb1206452e43334ab7f64b8e285dc5266660c8bd 100644 (file)
@@ -45,6 +45,12 @@ gallium_dri_la_LIBADD = \
 
 if HAVE_GALLIUM_STATIC_TARGETS
 
+# XXX: Temporary allow duplicated symbols, as the loader pulls in xmlconfig.c
+# which already provides driParse* and driQuery* amongst others.
+# Remove this hack as we come up with a cleaner solution.
+gallium_dri_la_LDFLAGS += \
+       -Wl,--allow-multiple-definition
+
 MEGADRIVERS =
 STATIC_TARGET_CPPFLAGS =
 STATIC_TARGET_LIB_DEPS = \