<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Apr 21, 2016 at 6:16 AM, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
<br>
Copy/pasta from the rest of mesa, but namely.<br></blockquote><div><br></div><div>Mmmm... pasta... Sounds tasty but probably not what you meant.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- The module should be shared only.<br>
- We don't need the explicit ".so", as the vulkan loader will retrieve<br>
the full filename from the json<br>
- No unresolved symbols in the final binary<br>
- Use the linker garbage collector to slim down the final binary.<br>
<br>
Signed-off-by: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
---<br>
src/intel/vulkan/Makefile.am | 7 ++++++-<br>
1 file changed, 6 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am<br>
index 4428a25..071d118 100644<br>
--- a/src/intel/vulkan/Makefile.am<br>
+++ b/src/intel/vulkan/Makefile.am<br>
@@ -176,7 +176,12 @@ libvulkan_intel_la_LIBADD = $(WAYLAND_LIBS) \<br>
$(PER_GEN_LIBS)<br>
<br>
libvulkan_intel_la_LDFLAGS = \<br>
- -module -avoid-version -shared -shrext .so<br>
+ -shared \<br>
+ -module \<br>
+ -no-undefined \<br>
+ -avoid-version \<br>
+ $(GC_SECTIONS) \<br>
+ $(LD_NO_UNDEFINED)<br>
<br>
<br>
# Generate icd files. It would be nice to just be able to add these to<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.8.0<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>