extldflags_rpath

command
v0.19.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

README

This test checks that flags passed to the external linker with -extldflags through gc_linkopts are correctly combined with other flags passed through -extldflags.

go tool link only uses the last set of flags passed with -extldflags. If more than one set of flags is passed, the last set is passed to the external linker, and the rest are silently ignored.

go_binary and go_test should look for -extldflags in gc_linkopts and combine the flags into a single list passed to go tool link. This includes flags generated by the rules themselves.

This test checks this behavior by adding extra rpaths, which has an observable effect on a go_binary linked with the external linker. The shell script checks that these paths are present.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL