[Mesa-dev] [PATCH 04/25] anv: tweak the LDFLAGS

Jason Ekstrand jason at jlekstrand.net
Thu Apr 21 21:06:31 UTC 2016


On Thu, Apr 21, 2016 at 6:16 AM, Emil Velikov <emil.l.velikov at gmail.com>
wrote:

> From: Emil Velikov <emil.velikov at collabora.com>
>
> Copy/pasta from the rest of mesa, but namely.
>

Mmmm... pasta... Sounds tasty but probably not what you meant.


>  - 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 at collabora.com>
> ---
>  src/intel/vulkan/Makefile.am | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/src/intel/vulkan/Makefile.am b/src/intel/vulkan/Makefile.am
> index 4428a25..071d118 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
> --
> 2.8.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160421/bd3230b4/attachment-0001.html>


More information about the mesa-dev mailing list