Fix linking Rust libraries with GNU linkers

GNU linkers work as single-pass linkers, and unresolved symbols are
progressively resolved with later components being linked. That means
users of a library should be linked before the library.

As Rust libraries are sorted by name, linking will break. To solve
this, put all Rust libraries in a linking group.

Bug: 40945821
Change-Id: Ie064ec05264673ac9756953a764da5588923ed4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5541062
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: José Dapena Paz <jdapena@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1309569}
NOKEYCHECK=True
GitOrigin-RevId: aee8b77fc0b2ebe1f1b81fc0bfe5d07fcc6c00d8
1 file changed