[Mesa-dev] [PATCH 05/11] gallium/auxiliary: Build libgallium shared.
Chia-I Wu
olvaffe at gmail.com
Fri Jan 11 21:34:34 PST 2013
On Sat, Jan 12, 2013 at 10:23 AM, Johannes Obermayr
<johannesobermayr at gmx.de> wrote:
> diff --git a/src/gallium/auxiliary/Makefile.am b/src/gallium/auxiliary/Makefile.am
> index a4eee47..21b3c6b 100644
> --- a/src/gallium/auxiliary/Makefile.am
> +++ b/src/gallium/auxiliary/Makefile.am
> @@ -3,13 +3,17 @@ AUTOMAKE_OPTIONS = subdir-objects
> include Makefile.sources
> include $(top_srcdir)/src/gallium/Automake.inc
>
> -noinst_LTLIBRARIES = libgallium.la
> +lib_LTLIBRARIES = libgallium at VERSION@.la
I probably missed the discussion. I suppose libgallium is meant to be
internal. What motivates the change?
> +
> +libgallium at VERSION@_la_LDFLAGS = -Wl,--no-undefined -shared -avoid-version
> +
> +libgallium at VERSION@_la_LIBADD = $(DLOPEN_LIBS) $(CLOCK_LIB)
>
> AM_CFLAGS = \
> -I$(top_srcdir)/src/gallium/auxiliary/util \
> $(GALLIUM_CFLAGS)
>
> -libgallium_la_SOURCES = \
> +libgallium at VERSION@_la_SOURCES = \
> $(C_SOURCES) \
> $(GENERATED_SOURCES)
>
> @@ -28,10 +32,14 @@ AM_CXXFLAGS += -fno-rtti
>
> endif
>
> -libgallium_la_SOURCES += \
> +libgallium at VERSION@_la_SOURCES += \
> $(GALLIVM_SOURCES) \
> $(GALLIVM_CPP_SOURCES)
>
> +libgallium at VERSION@_la_LIBADD += $(LLVM_LIBS)
> +
> +libgallium at VERSION@_la_LDFLAGS += $(LLVM_LDFLAGS)
> +
> endif
>
--
olv at LunarG.com
More information about the mesa-dev
mailing list