Avoid mesa_dri_drivers import lib being installed
authorJon TURNEY <jon.turney@dronecode.org.uk>
Sat, 5 Apr 2014 18:20:15 +0000 (19:20 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Sun, 13 Jul 2014 15:06:46 +0000 (16:06 +0100)
On Cygwin and MinGW, linking a shared library also generates an import library

Use a wildcard which also matches the name of the megadriver import lib,
mesa_dri_drivers.dll.a, so that is also removed after megadriver symlinks are
created

(This then matches src/gallium/targets/dri/Makefile.am, which already does
things this way)

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/mesa/drivers/dri/Makefile.am

index 70039f9ad82d262190993b96a4fe335717b7f47e..2009da921ba5ab1de32d64df0713ec7bc8c2651f 100644 (file)
@@ -85,7 +85,6 @@ install-data-hook:
                ln -f $(DESTDIR)$(dridir)/mesa_dri_drivers.so \
                      $(DESTDIR)$(dridir)/$$i; \
        done;
-       $(RM) -f $(DESTDIR)$(dridir)/mesa_dri_drivers.so
-       $(RM) -f $(DESTDIR)$(dridir)/mesa_dri_drivers.la
+       $(RM) -f $(DESTDIR)$(dridir)/mesa_dri_drivers.*
 
 endif