The last thing blocking enabling subdir-objects (the default for automake-1.4, and the only option for automake-2.0) is
libloader_la_SOURCES += \
Worse, since the loader is linked into the gallium dri targets, which also links in dricommon which includes xmlconfig.c...
# 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 += \
I'd fix it myself, but I literally have no idea what is going on. I've been poking about this since at least December 21st last year, so I'd *really* appreciate sorting this out.
Created attachment 116376 [details] [review]
I gave it a spin, and got this compiling. It's a mess, but works for me. Dunno.
Created attachment 116377 [details] [review]
Here's a version that works with out-of-tree builds, and also gets rid of --allow-multiple-definition.
Yes the situation is a "bit" messy, and considering the interesting use of xmlconfig by the loader (and effectively libGL) I intentionally stayed away from it.
Anywho, I've picked Erik's approach, updated+tested the other two build systems and will send the patch to the ML in a second. Meanwhile Eric pushed some patches that make autotools complain about another subdir-objects issue. Will send a patch for that one as well.
*** Bug 90310 has been marked as a duplicate of this bug. ***
attachment 116377 [details] [review] works for me on osx with --enable-dri --disable-vdpau --disable-va --enable-asm --with-gallium-drivers=swrast --enable-gles2 --enable-gles1 --enable-glx --enable-opengl --enable-gallium-osmesa --with-egl-platforms=x11 --enable-debug --enable-gallium-llvm --disable-omx --disable-llvm-shared-libs
Both issues (the subdir-objects and -Wl,--allow-multiple-definition) should be sorted now. Thank for the help gents.
on Mar 26, 2017 at 01:35:53.
(provided by the Example extension).