Module: Mesa
Branch: 17.0
Commit: b196e01edc0d8eeeebed347fe0dbf4fc247d821b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b196e01edc0d8eeeebed347fe0dbf4fc247d821b

Author: Emil Velikov <[email protected]>
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: [email protected]
Reported-by: Laurent Carlier <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eduardo Lima Mitev <[email protected]>
(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)
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to