If you build xorg-x11 for Sparc Linux and require the dlloader, Mesa
does not build because LargePositionIndependentCFlags never gets defined for the
combination sparc+linux. It needs to be defined as
#define LargePositionIndependentCFlags -fPIC
This patch fixes it, although I cannot say that where I have put it is the best
place for it.
--- config/cf/xorg.cf- 2004-09-03 22:00:10.000000000 +0000
+++ config/cf/xorg.cf 2004-12-13 13:33:47.000000000 +0000
@@ -512,6 +512,11 @@
+#define LargePositionIndependentCFlags -fPIC
/* Sparc64 Drivers */
#if defined(OpenBSDArchitecture) && defined(Sparc64Architecture)
/* Amiga framebuffer module */
Created attachment 1536 [details] [review]
Patch to define LargePositionIndependentCFlage
Patch to define LargePositionIndependentCFlags applied to vanilla xorg.cf.
Identical to the patch as written out in the original description.
For completeness, here is a cross reference to a very long discussion of xorg on
Created attachment 1540 [details] [review]
probably this should go in linux.cf instead. can you try this patch?
compiler flag definitions usually shouldn't go in xorg.cf since we don't know
what compiler is being used. whereas in linux.cf we can pretty well assert
that we're using gcc.
I'll verify it tomorrow. The reason I put the patch in xorg.cf rather than in
linux.cf is that I didn't think the problem was specific to linux (it's really
xorg-on-sparc-but-not-solaris-and-sun-compiler, I think. But I don't know if
that resuces to linux or not.)
Patch 1540 (Put the define into linux.cf if no previous definition) works fine.
(And for me, it does not matter where it goes.)
Created attachment 2062 [details] [review]
yeah, you're probably right. however i'd prefer to wrap this in a check for
gcc too, since sun C uses -KPIC for this and redefinition warnings are ugly.
give this one a shot and i'll check it in.
sorry for the lag on this one...
Patch works fine. I just did a standard Gentoo unpack for xorg-x11-6.8.2-r1,
removed the existing patch to fix this problem,
and applied the large...-sparc-2.patch by hand. After that, everything gets
Specifically, xc/programs/Xserver/GL has '-fPIC' instead of the dangling
LargePosition... that you get if LargePosition... is not defined correctly.
applied to head, thanks!