Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 285 for ldflag (0.11 sec)

  1. cmd/kubemark/app/hollow_node.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package app
    
    import (
    	"context"
    	goflag "flag"
    	"fmt"
    	"time"
    
    	"github.com/spf13/cobra"
    	"github.com/spf13/pflag"
    	"go.opentelemetry.io/otel/trace/noop"
    	internalapi "k8s.io/cri-api/pkg/apis"
    	"k8s.io/klog/v2"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/go/testdata/script/gcflags_patterns.txt

    # -ldflags applies to link of command
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to link of command even with strange directory name
    go build -a -n -ldflags=-X=math.pi=3 my/cmd/prog/
    stderr 'link.* -X=math.pi=3'
    
    # -ldflags applies to current directory
    cd my/cmd/prog
    go build -a -n -ldflags=-X=math.pi=3
    stderr 'link.* -X=math.pi=3'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 21 14:58:44 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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
    
    # ... but not the second, even though it still prints the compiler and linker output.
    go build -x -gcflags=-m -ldflags='-v -w' main.go
    ! 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)
Back to top