aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/Makefile.am
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-04-20 17:29:25 +0100
committerEmil Velikov <[email protected]>2016-05-01 08:38:03 +0100
commit30e6f68b3bca2a8cb17c3c61b5e8ebd58bc504e7 (patch)
tree7bf2d66de2b76744960cb1534c87839447246170 /src/intel/vulkan/Makefile.am
parentb370ec7c76d098cca4d63561fa294a9088d60fcf (diff)
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 <[email protected]> Acked-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/Makefile.am')
-rw-r--r--src/intel/vulkan/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am
index c7e3ebcaade..983b4c2af28 100644
--- a/src/intel/vulkan/Makefile.am
+++ b/src/intel/vulkan/Makefile.am
@@ -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