[PATCH xserver] tests: shuffle around the linking order to please GNU ld

Mihail Konev k.mvc at ya.ru
Wed Jan 25 20:49:25 UTC 2017


On Wed, Jan 25, 2017 at 09:28:21AM +0500, Mihail Konev wrote:
> (The static library was acting like ld's --begin-group ... --end-group
> for all its LIBADD-s).

Wrong, this would only apply to .a libraries; but *_SYS_LIBS in question
are all "-l*"-s.

Instead, libtool was remembering the args in the xservertest.la file as
dependencies, then appending them to test/{string,list,...} link command
after the test/.libs/xservertest.a .

As there is nothing now that tells libtool that the former xservertest.la
components depend on the *_SYS_LIBS, moving "-l"-s to the end of ld command
has to be done manually.


More information about the xorg-devel mailing list