anv: tweak the LDFLAGS

Copy/paste from the rest of mesa, but namely.
 - The module should be shared only.
 - We don't need the explicit ".so", as the vulkan loader will retrieve
the full filename from the json
 - No unresolved symbols in the final binary
 - Use the linker garbage collector to slim down the final binary.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Emil Velikov
2016-04-20 17:29:25 +01:00
committed by Emil Velikov
parent b370ec7c76
commit 30e6f68b3b
+6 -1
View File
@@ -176,7 +176,12 @@ libvulkan_intel_la_LIBADD = $(WAYLAND_LIBS) \
$(PER_GEN_LIBS)
libvulkan_intel_la_LDFLAGS = \
-module -avoid-version -shared -shrext .so
-shared \
-module \
-no-undefined \
-avoid-version \
$(GC_SECTIONS) \
$(LD_NO_UNDEFINED)
# Generate icd files. It would be nice to just be able to add these to