- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 411 for Ldflags (0.13 sec)
-
buildscripts/gen-ldflags.go
Harshavardhana <******@****.***> 1655421048 -0700
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 16 23:10:48 UTC 2022 - 3.3K bytes - Viewed (0) -
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/cmd/go/testdata/script/ldflag.txt
# Issue #42565 [!cgo] skip # We can't build package bad, which uses #cgo LDFLAGS. cd bad ! go build 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 14 14:11:56 UTC 2020 - 762 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/cgo_undef.txt
# such that the .syso file only works when linked against the .a file. # Package a has #cgo LDFLAGS to make this happen. # # Package c imports package a, and uses cgo itself. # The generation of the _cgo_import.go for package c will fail, # because it won't know that it has to link against a/libb.a # (because we don't gather the #cgo LDFLAGS from all transitively # imported packages). #
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 22 20:56:07 UTC 2022 - 1.6K bytes - Viewed (0)