- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for cgo_ldflag (0.16 sec)
-
src/cmd/compile/internal/noder/lex_test.go
{`go:cgo_dynamic_linker "/path/"`, []string{`cgo_dynamic_linker`, `/path/`}}, {`go:cgo_dynamic_linker "/p ath/"`, []string{`cgo_dynamic_linker`, `/p ath/`}}, {`go:cgo_ldflag "arg"`, []string{`cgo_ldflag`, `arg`}}, {`go:cgo_ldflag "a rg"`, []string{`cgo_ldflag`, `a rg`}}, } if runtime.GOOS != "aix" { tests = append(tests, []testStruct{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:39:06 UTC 2020 - 3.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_bad_directives.txt
[compiler:gc] ! go build _cgo_yy.go # ... but if forced, the comment is rejected # Actually, today there is a separate issue that _ files named # on the command line are ignored. Once that is fixed, # we want to see the cgo_ldflag error. [compiler:gc] stderr '//go:cgo_ldflag only allowed in cgo-generated code|no Go files' rm _cgo_yy.go # Reject #cgo CFLAGS: -fplugin=foo.so cp x.go.txt x.go cp y_fplugin.go.txt y.go ! go build x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 2.8K bytes - Viewed (0) -
src/cmd/link/internal/ld/go.go
fmt.Fprintf(os.Stderr, "%s: conflict dynlinker: %s and %s\n", os.Args[0], interpreter, f[1]) nerrors++ return } interpreter = f[1] } continue case "cgo_ldflag": if len(f) != 2 { break } ldflag = append(ldflag, f[1]) continue } fmt.Fprintf(os.Stderr, "%s: %s: invalid cgo directive: %q\n", os.Args[0], file, f) nerrors++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 16:48:30 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/cgo/doc.go
creating go.o. Indeed, the definition for _cgo_gcc_Cfunc_sin will be provided to the host linker by foo2.cgo.o, which in turn will need the symbol 'sin'. cmd/link also processes the cgo_ldflag directives, so that it knows that the eventual host link command must include the -lm argument, so that the host linker will be able to find 'sin' in the math library. cmd/link Command Line Interface
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testfortran/fortran_test.go
t.Errorf("error invoking %s: %s", fc, err) } libDir := filepath.Dir(string(libPath)) cgoLDFlags := os.Getenv("CGO_LDFLAGS") cgoLDFlags += " -L " + libDir if runtime.GOOS != "aix" { cgoLDFlags += " -Wl,-rpath," + libDir } t.Logf("CGO_LDFLAGS=%s", cgoLDFlags) os.Setenv("CGO_LDFLAGS", cgoLDFlags) } // Do a test build that doesn't involve Go FORTRAN support.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 01:29:16 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/go/internal/work/gccgo.go
noWholeArchive = nil } ldflags = append(ldflags, wholeArchive...) ldflags = append(ldflags, afiles...) ldflags = append(ldflags, noWholeArchive...) ldflags = append(ldflags, cgoldflags...) ldflags = append(ldflags, envList("CGO_LDFLAGS", "")...) if cfg.Goos != "aix" { ldflags = str.StringList("-Wl,-(", ldflags, "-Wl,-)") } if root.buildID != "" { // On systems that normally use gold or the GNU linker,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 02 22:18:34 UTC 2024 - 19K bytes - Viewed (0) -
src/cmd/go/testdata/script/version_build_settings.txt
env CGO_ENABLED=0 go build go version -m m$GOEXE stdout '^\tbuild\tCGO_ENABLED=0$' ! stdout CGO_CPPFLAGS|CGO_CFLAGS|CGO_CXXFLAGS|CGO_LDFLAGS [cgo] env CGO_ENABLED=1 [cgo] env CGO_CPPFLAGS=-DFROM_CPPFLAGS=1 [cgo] env CGO_CFLAGS=-DFROM_CFLAGS=1 [cgo] env CGO_CXXFLAGS=-DFROM_CXXFLAGS=1 [cgo] env CGO_LDFLAGS=-L/extra/dir/does/not/exist [cgo] go build '-ldflags=all=-linkmode=external -extldflags=-L/bonus/dir/does/not/exist'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 2.7K bytes - Viewed (0) -
src/cmd/go/internal/work/exec.go
// along to the host linker. At this point in the code, cgoLDFLAGS // consists of the original $CGO_LDFLAGS (unchecked) and all the // flags put together from source code (checked). cgoenv := b.cCompilerEnv() var ldflagsOption []string if len(cgoLDFLAGS) > 0 { flags := make([]string, len(cgoLDFLAGS)) for i, f := range cgoLDFLAGS { flags[i] = strconv.Quote(f) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 14:46:37 UTC 2024 - 105.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/cshared_test.go
env = append(env, "CGO_LDFLAGS=-Wl,--out-implib,"+lib, "CGO_LDFLAGS_ALLOW=.*") lib = strings.TrimSuffix(lib, ".a") + ".dll" } run(t, env, "go", "build", "-buildmode=c-shared", "-o", lib, "./go2c2go/go") cgoCflags := os.Getenv("CGO_CFLAGS") if cgoCflags != "" { cgoCflags += " " } cgoCflags += "-I" + tmpdir cgoLdflags := os.Getenv("CGO_LDFLAGS") if cgoLdflags != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 21K bytes - Viewed (0) -
src/cmd/go/testdata/script/ldflag.txt
stderr no-such-warning # We can build package ok with the same flags in CGO_LDFLAGS. env CGO_LDFLAGS=-Wno-such-warning -Wno-unknown-warning-option cd ../ok go build # Build a main program that actually uses LDFLAGS. cd .. go build -ldflags=-v # Because we passed -v the Go linker should print the external linker # command which should include the flag we passed in CGO_LDFLAGS. stderr no-such-warning -- go.mod -- module ldflag
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 14 14:11:56 UTC 2020 - 762 bytes - Viewed (0)