See src/video/XFree86. The README says: "The reason these libraries are built outside of the standard XFree86 tree is so that they can be linked as shared object code directly into SDL without causing any symbol collisions with code in the application. You can't link static library code into shared libraries on non-x86 Linux platforms. Since these libraries haven't become standard yet, we'll just include them directly. These sources are synchronized with XFree86 4.2.1." In modular X, pretty much all libraries are built shared so there's no longer any reason to do this.
decoupling the code isnt trivial so i've poked upstream about some hints on how to go about doing this ...
Created attachment 87529 [details, diff] libsdl-1.2.10-no-bundled-X.patch i imagine this patch is wrong, but here's a weak attempt
Created attachment 90924 [details, diff] libsdl-1.2.11-no-bundled-X.patch Why should it be wrong and weak? Works fine for me with some minor modifications, adding #define SDL_NAME(X) X in two files :) Anthing holding this change back?
Created attachment 90947 [details, diff] libsdl-1.2.11-no-bundled-X.patch ok, new patch. Changes: - add -l(library) to LDFLAGS to make it actually work - remove xme diffs, xme is not used in the default gentoo build and not provided by modular xorg
I was getting a compile error no libsdl-1.2.11 (something about asm/page.h not being found). But this patch fixed that problem for me. Good work! How soon can we get this into the tree?
upstream has moved to doing this ... i dont think there's any value in trying to backport to versions in portage
Agreed.