Files
zig/src/link
Motiejus Jakštys ac9f72d87e zig ld: handle --library :path/to/lib.so
`-l :path/to/lib.so` behavior on gcc/clang is:

- the path is recorded as-is: no paths, exact filename (`libX.so.Y`).
- no rpaths.

The previous version removed the `:` and pretended it's a positional
argument to the linker. That works in almost all cases, except in how
rules_go[1] does things (the Bazel wrapper for Go).

Test case in #15743, output:

    gcc rpath:
     0x0000000000000001 (NEEDED)     Shared library: [libversioned.so.2]
     0x000000000000001d (RUNPATH)    Library runpath: [$ORIGIN/x]
    gcc plain:
     0x0000000000000001 (NEEDED)     Shared library: [libversioned.so.2]
    zig cc rpath:
     0x0000000000000001 (NEEDED)     Shared library: [libversioned.so.2]
     0x000000000000001d (RUNPATH)    Library runpath: [$ORIGIN/x]
    zig cc plain:
     0x0000000000000001 (NEEDED)     Shared library: [libversioned.so.2]

Fixes #15743

[1]: https://github.com/bazelbuild/rules_go
2023-05-30 08:18:10 +02:00
..
2023-05-26 21:42:19 -07:00
2023-04-17 13:35:39 +02:00
2023-04-25 13:42:10 -04:00
2023-05-26 21:42:19 -07:00
2023-05-26 21:42:19 -07:00
2023-05-01 19:22:53 -04:00
2020-09-21 18:38:55 -07:00
2023-04-23 21:06:21 +03:00
2023-05-26 21:42:19 -07:00
2023-04-01 08:31:27 +02:00