--- configure.ac | 7 +++++++ src/gallium/auxiliary/Makefile.am | 8 ++++++++ 2 Dateien geändert, 15 Zeilen hinzugefügt(+)
diff --git a/configure.ac b/configure.ac index 241b480..e4021b7 100644 --- a/configure.ac +++ b/configure.ac @@ -729,6 +729,13 @@ fi AC_SUBST([SHARED_GLAPI]) AM_CONDITIONAL(HAVE_SHARED_GLAPI, test "x$enable_shared_glapi" = xyes) +AC_ARG_ENABLE([shared-gallium], + [AS_HELP_STRING([--enable-shared-gallium], + [Enable shared gallium core @<:@default=no@:>@])], + [enable_shared_gallium="$enableval"], + [enable_shared_gallium=no]) +AM_CONDITIONAL(HAVE_SHARED_GALLIUM, test x$enable_shared_gallium = xyes) + dnl dnl Driver specific build directories dnl diff --git a/src/gallium/auxiliary/Makefile.am b/src/gallium/auxiliary/Makefile.am index a4eee47..0e34bee 100644 --- a/src/gallium/auxiliary/Makefile.am +++ b/src/gallium/auxiliary/Makefile.am @@ -3,8 +3,16 @@ AUTOMAKE_OPTIONS = subdir-objects include Makefile.sources include $(top_srcdir)/src/gallium/Automake.inc +if HAVE_SHARED_GALLIUM + +lib_LTLIBRARIES = libgallium.la + +else + noinst_LTLIBRARIES = libgallium.la +endif + AM_CFLAGS = \ -I$(top_srcdir)/src/gallium/auxiliary/util \ $(GALLIUM_CFLAGS) -- 1.7.10.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev