Mesa (17.0): anv: automake: list shared libraries after the static ones
Emil Velikov
evelikov at kemper.freedesktop.org
Wed May 31 17:22:32 UTC 2017
Module: Mesa
Branch: 17.0
Commit: b196e01edc0d8eeeebed347fe0dbf4fc247d821b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b196e01edc0d8eeeebed347fe0dbf4fc247d821b
Author: Emil Velikov <emil.velikov at collabora.com>
Date: Fri May 19 18:43:14 2017 +0100
anv: automake: list shared libraries after the static ones
The compiler can discard the shared ones from the link chain, since
there is no user (the static libraries) before it on the command line.
Cc: mesa-stable at lists.freedesktop.org
Reported-by: Laurent Carlier <lordheavym at gmail.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Eduardo Lima Mitev <elima at igalia.com>
(cherry picked from commit 3e8790bff096a1a56bd1a3046c556a7f93b68ca8)
---
src/intel/vulkan/Makefile.am | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am
index 95f276ed7e..ec2d175441 100644
--- a/src/intel/vulkan/Makefile.am
+++ b/src/intel/vulkan/Makefile.am
@@ -93,7 +93,20 @@ VULKAN_SOURCES = \
$(VULKAN_GENERATED_FILES) \
$(VULKAN_FILES)
-VULKAN_LIB_DEPS =
+VULKAN_LIB_DEPS = \
+ libvulkan_common.la \
+ $(top_builddir)/src/vulkan/wsi/libvulkan_wsi.la \
+ $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
+ $(top_builddir)/src/compiler/nir/libnir.la \
+ $(top_builddir)/src/util/libmesautil.la \
+ $(top_builddir)/src/intel/common/libintel_common.la \
+ $(top_builddir)/src/intel/isl/libisl.la \
+ $(top_builddir)/src/intel/blorp/libblorp.la \
+ $(PER_GEN_LIBS) \
+ $(PTHREAD_LIBS) \
+ $(DLOPEN_LIBS) \
+ -lm
+
if HAVE_PLATFORM_X11
AM_CPPFLAGS += \
@@ -123,20 +136,6 @@ endif
noinst_LTLIBRARIES += libvulkan_common.la
libvulkan_common_la_SOURCES = $(VULKAN_SOURCES)
-VULKAN_LIB_DEPS += \
- libvulkan_common.la \
- $(top_builddir)/src/vulkan/wsi/libvulkan_wsi.la \
- $(top_builddir)/src/mesa/drivers/dri/i965/libi965_compiler.la \
- $(top_builddir)/src/compiler/nir/libnir.la \
- $(top_builddir)/src/util/libmesautil.la \
- $(top_builddir)/src/intel/common/libintel_common.la \
- $(top_builddir)/src/intel/isl/libisl.la \
- $(top_builddir)/src/intel/blorp/libblorp.la \
- $(PER_GEN_LIBS) \
- $(PTHREAD_LIBS) \
- $(DLOPEN_LIBS) \
- -lm
-
nodist_EXTRA_libvulkan_intel_la_SOURCES = dummy.cpp
libvulkan_intel_la_SOURCES = $(VULKAN_GEM_FILES)
More information about the mesa-commit
mailing list