cgo

package
v0.0.0-...-74d226f Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(bp *build.Package, pkgdir, tmpdir string) (*exec.Cmd, error)

Command returns a prepared exec.Cmd to invoke the cgo preprocessor on bp.CgoFiles. The caller is responsible for running it.

func DynamicImports

func DynamicImports(filename string) (interp string, imports [][3]string, err error)

DynamicImports scans a gcc-produced executable and reports information about the imported symbols and the imported libraries. The 'go build' rules for cgo prepare an appropriate executable and then use its import information instead of needing to make the linkers duplicate all the specialized knowledge gcc has about where to look for imported symbols and which ones to use.

func PkgConfig

func PkgConfig(mode string, pkgs []string) (flags []string, err error)

PkgConfig runs pkg-config with the specified arguments and returns the flags it prints.

func PkgConfigFlags

func PkgConfigFlags(p *build.Package) (cflags []string, err error)

PkgConfigFlags calls pkg-config if needed and returns the cflags needed to build the package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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