fix: cgo: include dynamic library when interface library is set (#4569)

On Linux, some packages provide a linker script as the interface library
(e.g. a bare `libfoo.so` containing `GROUP(...)`). The script references
the actual versioned dynamic library, which must also be present in the
sandbox for the linker to resolve it.
1 file changed