From: Brian P. <br...@va...> - 2001-07-02 14:14:17
|
"Sven M. Hallberg" wrote: > > On Fri, Jun 29, 2001 at 07:56:41AM -0600, Brian Paul wrote: > > > > Sven, can you look at this? > > > > -Brian > > > > > > Lans Carstensen wrote: > > > > > > Greetings! > > > > > > There is a problem with the libMesaOS.la during builds, such that > > > src/.libs/libGL.so.* get moved aside and not relinked on a "make > > > install". Instead of pointing at the .libs directory for linking, the > > > build is pointing to /usr/lib when relinking with -lMesaOS. > > Hmmm, is libGL.so even supposed to link against -lMesaOS? No. The other way around: libOSMesa depends on libGL. > If I'm correct, > I overlooked that when I changed libMesaOS from a convenience lib to a > shared one. Please confirm! > > > > Basically, a clean build on a clean machine won't work because of this. > > > The patch below fixes this. Looks like it was a typo. I was able to > > > rebuild Mesa 3.5 RPMs for RedHat 7.1 for some of our internal work with > > > this patch. If you'd like me to submit my Mesa 3.5 source RPM, I'd be > > > happy to - just let me know where to FTP it. > > > > > > *** src/OSmesa/Makefile.am.orig Wed Jun 27 16:02:16 2001 > > > --- src/OSmesa/Makefile.am Wed Jun 27 16:02:30 2001 > > > *************** > > > *** 5,11 **** > > > INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src > > > > > > if HAVE_OSMESA > > > ! lib_LTLIBRARIES = libMesaOS.la > > > endif > > > > > > libMesaOS_la_SOURCES = osmesa.c > > > --- 5,11 ---- > > > INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src > > > > > > if HAVE_OSMESA > > > ! noinst_LTLIBRARIES = libMesaOS.la > > > endif > > > > > > libMesaOS_la_SOURCES = osmesa.c > > But libMesaOS is supposed to be installed, right? Right. > Sorry if I'm complicated, my view of where and how libMesaOS should appear and > how it is used is just a bit foggy, because I've never really looked at it. > Enlightenment appreciated, though. :) The libOSMesa.so library contains the code which implements the OSMesa interface functions like OSMesaCreateContext(), OSMesaMakeCurrent(), etc. I've split this off from the core GL library to be consistant with XFree86. It's also a better design. If an application has a dependency on the OSMesa interface, it should express that dependency in its library bindings. -Brian |