I was wondering whether the building of MesaLib could be performed in
the following way without the modifications (described in the SVN BLFS
book) to the source files. The rationale behind my proposition is that
the modifications cause many changes to the source files and are a
little bit inconvenient when one wants to build the CVS version of
MesaLib and then update the source base and rebuild it on regular (or
irregular) intervals of time because a lot of files get changed and
when one updates from CVS they get changed back and the fixing has to
be performed again.

make \
   X11_INCLUDES='-DDEFAULT_DRIVER_DIR="\"/usr/X11R7/lib/dri\""
-I/usr/X11R7/include' \
   EXTRA_LIB_PATH=-L/usr/X11R7/lib \
   DRI_DIRS=r200 \
   linux-dri-x86

X11_INCLUDES is pretty straightforward but it also defines
DEFAULT_DRIVER_DIR because I'm unable to specify a value for DEFINES
without discarding the other values in it. Otherwise one has to change
src/glx/x11/dri_glx.c which I don't want to do because I have to do it
after each update from CVS.

Please, note the that I've used /usr/X11R7 for XORG_PREFIX but this is
not really important for the approach that I propose and one can
replace it with their own XORG_PREFIX.

Please, note that I haven't tested the proposed building procedure for
MesaDemo because I don't use it.

I believe that the above procedure works for me because I've been
using it for about a month now. I hope that you will find it useful.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to