[Mesa-dev] [PATCH 3/4] i965: Convert the build to using automake.

Eric Anholt eric at anholt.net
Tue Jan 17 10:27:22 PST 2012


On Thu, 12 Jan 2012 20:52:33 -0500, Matt Turner <mattst88 at gmail.com> wrote:
> On Thu, Jan 12, 2012 at 7:08 PM, Eric Anholt <eric at anholt.net> wrote:
> > This does introduce a warning by the automake build system, that the
> > missing-symbols test build is non-portable.  That's true -- Mac OS X
> > can't take something built as a loadable module and just link it as a
> > library.  Of course, we aren't building this on OS X at all, so it
> > would be nice to be able to suppress it, but I haven't found a way.
> >
> > Still, the build is going to be much quieter than we have ever had
> > before, so I think this is a fair tradeoff until we find a way to shut
> > that warning up.
> > ---
> 
> If you want to still put i965_dri.so into the lib/ directory, here's
> what I've done for libglsl.so:
> 
> all-local: libglsl.la
>         if test ! -f "$(top_srcdir)/$(LIB_DIR)/libglsl.so"; then \
>                 $(MKDIR_P) $(top_srcdir)/$(LIB_DIR); \
>                 ln .libs/libglsl.so $(top_srcdir)/$(LIB_DIR)/libglsl.so; \
>         fi
> 
> Maybe there's a better way. I don't know.

Nice.  I added a variant of this, after having burned myself by using my
scripts for testing across this change.  We can delete the code some
time down the line, but for now this should reduce the pain of
transition for people.  I dropped the test for the file existing -- I
want to replace the previous file there, not just leave an old one in
place.

# Provide compatibility with scripts for the old Mesa build system for
# a while by putting a link to the driver into /lib of the build tree.
all-local: i965_dri.la
	$(MKDIR_P) $(top_builddir)/$(LIB_DIR);
	ln -f .libs/i965_dri.so $(top_builddir)/$(LIB_DIR)/i965_dri.so;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120117/7fe6036b/attachment.pgp>


More information about the mesa-dev mailing list