[PATCH v2 xserver] os,dix: rename *.O to *.a

Alan Coopersmith alan.coopersmith at oracle.com
Tue Feb 14 07:01:39 UTC 2017


On 02/11/17 09:31 PM, Alan Coopersmith wrote:
> Sorry, this patch breaks the generation of the dtrace objects
> on Solaris, and results in the Xorg binary failing to link with:

BTW, I should mention that this was an incorrect assumption:

> On 02/ 9/17 09:47 PM, Mihail Konev wrote:
>> Libtool was moving the *.O libraries in front of all others on
>> the gcc command line, which was necessiating "ld -r"
>> (so that symbols from now-moved os.O are visible from the following
>> libs), which, in turn, was altering the linker behaviour against os/
>> and dix/ between with-/usr/bin/dtrace and --with-dtrace=no builds.

ld -r was used not because of libtool, but because the dtrace data in the
ELF files gets properly included in a relocatable object, but not a static
library.  (This is probably because of a misuse of ELF by dtrace, but that's
the way it works, and has for over a decade.)

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list