- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 332 for Ldflags (0.21 sec)
-
src/cmd/cgo/internal/testso/testdata/so/cgoso.go
/* // intentionally write the same LDFLAGS differently // to test correct handling of LDFLAGS. #cgo linux LDFLAGS: -L. -lcgosotest #cgo dragonfly LDFLAGS: -L. -l cgosotest #cgo freebsd LDFLAGS: -L. -l cgosotest #cgo openbsd LDFLAGS: -L. -l cgosotest #cgo solaris LDFLAGS: -L. -lcgosotest #cgo netbsd LDFLAGS: -L. libcgosotest.so #cgo darwin LDFLAGS: -L. libcgosotest.dylib #cgo windows LDFLAGS: -L. libcgosotest.a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:37:41 UTC 2023 - 761 bytes - Viewed (0) -
src/cmd/go/testdata/script/gcflags_patterns.txt
! go build '-ldflags="-X main.X=Hello"' stderr 'invalid value' # -ldflags for implicit test package applies to test binary go test -a -c -n -gcflags=-N -ldflags=-X=x.y=z z1 stderr 'compile.* -N .*z_test.go' stderr 'link.* -X=x.y=z' # -ldflags for explicit test package applies to test binary go test -a -c -n -gcflags=z1=-N -ldflags=z1=-X=x.y=z z1 stderr 'compile.* -N .*z_test.go' stderr 'link.* -X=x.y=z'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 21 14:58:44 UTC 2023 - 2.5K bytes - Viewed (0) -
src/runtime/cgo/cgo.go
*/ package cgo /* #cgo darwin,!arm64 LDFLAGS: -lpthread #cgo darwin,arm64 LDFLAGS: -framework CoreFoundation #cgo dragonfly LDFLAGS: -lpthread #cgo freebsd LDFLAGS: -lpthread #cgo android LDFLAGS: -llog #cgo !android,linux LDFLAGS: -lpthread #cgo netbsd LDFLAGS: -lpthread #cgo openbsd LDFLAGS: -lpthread #cgo aix LDFLAGS: -Wl,-berok #cgo solaris LDFLAGS: -lxnet #cgo solaris LDFLAGS: -lsocket
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 14:29:46 UTC 2023 - 1.1K bytes - Viewed (0) -
src/cmd/go/internal/work/gc.go
} else { compiler = envList("CC", cfg.DefaultCC(cfg.Goos, cfg.Goarch)) } ldflags = append(ldflags, "-buildmode="+ldBuildmode) if root.buildID != "" { ldflags = append(ldflags, "-buildid="+root.buildID) } ldflags = append(ldflags, forcedLdflags...) ldflags = append(ldflags, root.Package.Internal.Ldflags...) ldflags, err := setextld(ldflags, compiler) if err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:37:44 UTC 2024 - 23K bytes - Viewed (0) -
src/cmd/go/internal/work/gccgo.go
wholeArchive = nil 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 != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 02 22:18:34 UTC 2024 - 19K bytes - Viewed (0) -
common/scripts/gobuild.sh
GOPKG="$GOPATH/pkg" BUILDINFO=${BUILDINFO:-""} STATIC=${STATIC:-1} LDFLAGS=${LDFLAGS:--extldflags -static} GOBUILDFLAGS=${GOBUILDFLAGS:-""} # Split GOBUILDFLAGS by spaces into an array called GOBUILDFLAGS_ARRAY. IFS=' ' read -r -a GOBUILDFLAGS_ARRAY <<< "$GOBUILDFLAGS" GCFLAGS=${GCFLAGS:-} export CGO_ENABLED=${CGO_ENABLED:-0} if [[ "${STATIC}" != "1" ]];then LDFLAGS="" fi # gather buildinfo if not already provided
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Oct 21 14:08:46 UTC 2022 - 2.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_cd_gopath_different.txt
[compiler:gccgo] skip 'gccgo does not support -ldflags -X' env GO111MODULE=off go build run_go.go # Apply identity function to GOPATH exec ./run_go$GOEXE $GOPATH/src/my.pkg/main $GOPATH IDENTITY build -o $WORK/tmp/a.exe -ldflags -X=my.pkg.Text=linkXworked exec $WORK/tmp/a.exe stderr 'linkXworked' rm $WORK/tmp/a.exe [!GOOS:windows] stop 'rest of the tests only apply to Windows' # Replace '\' with '/' in GOPATH
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 1.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_cache_output.txt
go build -x -gcflags=-m -ldflags='-v -w' main.go ! stderr 'compile( |\.exe"?)' stderr 'main.go:2.* can inline main' # from compiler ! stderr 'link(\.exe"?)? -' stderr '\d+ symbols' # from linker # Running a test should run the compiler, linker, and the test the first time. go test -v -x -gcflags=-m -ldflags=-v p stderr 'compile( |\.exe"?)'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 2K bytes - Viewed (0) -
src/cmd/go/testdata/script/version_build_settings.txt
[GOARCH:amd64] stdout '^\tbuild\tGOAMD64=' ! stdout asmflags|gcflags|ldflags|gccgoflags # Toolchain flags are added if present. # The raw flags are included, with package patterns if specified. go build -asmflags=example.com/m=-D=FOO=bar go version -m m$GOEXE stdout '^\tbuild\t-asmflags=example\.com/m=-D=FOO=bar$' go build -gcflags=example.com/m=-N go version -m m$GOEXE stdout '^\tbuild\t-gcflags=example\.com/m=-N$'
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/testdata/script/gccgo_link_ldflags.txt
# Test that #cgo LDFLAGS are properly quoted. # The #cgo LDFLAGS below should pass a string with spaces to -L, # as though searching a directory with a space in its name. # It should not pass --nosuchoption to the external linker. [!cgo] skip go build [!exec:gccgo] skip # TODO: remove once gccgo on builder is updated [GOOS:aix] [GOARCH:ppc64] skip go build -compiler gccgo -- go.mod -- module m -- cgo.go -- package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 06:52:47 UTC 2023 - 499 bytes - Viewed (0)