[Mesa-dev] [PATCH] swr: fix swr linkage so that static llvm works

Chuck Atkins chuck.atkins at kitware.com
Tue May 17 13:10:21 UTC 2016


This patch was in response to an issue I raised to Tim and it fixed it for
me so
Tested-by: Chuck Atkins <chuck.atkins at kitware.com>

- Chuck

On Mon, May 16, 2016 at 2:31 PM, Tim Rowley <timothy.o.rowley at intel.com>
wrote:

> ---
>  src/gallium/drivers/swr/Makefile.am | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/swr/Makefile.am
> b/src/gallium/drivers/swr/Makefile.am
> index 6915aae..0a5ff19 100644
> --- a/src/gallium/drivers/swr/Makefile.am
> +++ b/src/gallium/drivers/swr/Makefile.am
> @@ -102,7 +102,10 @@ rasterizer/jitter/builder_x86.cpp:
> rasterizer/jitter/scripts/gen_llvm_ir_macros.
>
>  COMMON_LIBADD = \
>         $(top_builddir)/src/gallium/auxiliary/libgallium.la \
> -       $(top_builddir)/src/mesa/libmesagallium.la
> +       $(top_builddir)/src/mesa/libmesagallium.la \
> +       $(LLVM_LIBS)
> +
> +COMMON_LDFLAGS = $(LLVM_LDFLAGS)
>
>  lib_LTLIBRARIES = libswrAVX.la libswrAVX2.la
>
> @@ -117,6 +120,9 @@ libswrAVX_la_SOURCES = \
>  libswrAVX_la_LIBADD = \
>         $(COMMON_LIBADD)
>
> +libswrAVX_la_LDFLAGS = \
> +       $(COMMON_LDFLAGS)
> +
>  libswrAVX2_la_CXXFLAGS = \
>         -march=core-avx2 \
>         -DKNOB_ARCH=KNOB_ARCH_AVX2 \
> @@ -128,4 +134,7 @@ libswrAVX2_la_SOURCES = \
>  libswrAVX2_la_LIBADD = \
>         $(COMMON_LIBADD)
>
> +libswrAVX2_la_LDFLAGS = \
> +       $(COMMON_LDFLAGS)
> +
>  include $(top_srcdir)/install-gallium-links.mk
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160517/77c4f5b9/attachment.html>


More information about the mesa-dev mailing list