Name Date Size #Lines LOC

..--

BUILD.bazelH A D25-Apr-2025486 2320

README.mdH A D25-Apr-2025742 1612

extldflags_rpath_test.shH A D25-Apr-2025456 2823

main.goH A D25-Apr-202529 42

README.md

1This test checks that flags passed to the external linker with -extldflags
2through gc_linkopts are correctly combined with other flags passed through
3-extldflags.
4
5`go tool link` only uses the last set of flags passed with -extldflags. If more
6than one set of flags is passed, the last set is passed to the external linker,
7and the rest are silently ignored.
8
9`go_binary` and `go_test` should look for -extldflags in gc_linkopts and
10combine the flags into a single list passed to `go tool link`. This includes
11flags generated by the rules themselves.
12
13This test checks this behavior by adding extra rpaths, which has an observable
14effect on a `go_binary` linked with the external linker. The shell script checks
15that these paths are present.
16