[Mesa-dev] [PATCH] opencl: autotools: Fix linking order for OpenCL target

Emil Velikov emil.l.velikov at gmail.com
Tue Jun 5 14:33:35 UTC 2018


Hi all,

Seems like I've got this stuck in the drafts queue. While the patch
has been merged, I'm hitting "Send" for posterity.

On 2 May 2018 at 21:38, Jan Vesely <jan.vesely at rutgers.edu> wrote:

> @Emil, are you OK with this patch?
>
In a Tl;Dr; yes, patch is fine and is
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>

A bit more detail on the topic in general.

Autotools does not support positional arguments (like
(start|end)-group) as some of those are not portable. As in some of
the platforms it "supports" do not have an equivalents.
libtool creates a "whole-archive" libraries (the .la ones), which
effectively does the same thing.

The as-needed option is the one which [immediately] discards any
static or shared objects if they're not used by an object preceding
it. Although these days distributions flip the gcc/binutils configure
which that does effectively the same thing. IIRC Debian was the last
one an year or so ago.

HTH
Emil


More information about the mesa-dev mailing list