Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 411 for Ldflags (0.1 sec)

  1. src/cmd/go/testdata/script/cgo_long_cmd.txt

    # Issue #66456
    
    [!cgo] skip
    [GOOS:windows] skip
    [GOOS:plan9] skip
    
    # Generate a file with a very long #cgo LDFLAGS line.
    # This used to cause "go build" to fail with "argument list too long".
    go generate
    
    # Build with the generated file.
    go build
    
    -- go.mod --
    module cgolongcmd
    
    go 1.22
    -- generate.go --
    //go:build ignore
    
    package main
    
    import (
    	"fmt"
    	"log"
    	"os"
    	"bytes"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 782 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_ppc64_linker_funcs.txt

    [!GOOS:linux] skip
    [!compiler:gc] skip
    [!cgo] skip
    [!GOARCH:ppc64le] skip
    
    go build -ldflags='-linkmode=internal'
    exec ./abitest
    stdout success
    
    go build -buildmode=pie -o abitest.pie -ldflags='-linkmode=internal'
    exec ./abitest.pie
    stdout success
    
    -- go.mod --
    module abitest
    
    -- abitest.go --
    package main
    
    /*
    #cgo CFLAGS: -Os
    
    int foo_fpr() {
            asm volatile("":::"fr31","fr30","fr29","fr28");
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 1K bytes
    - Viewed (0)
  3. hack/lib/version.sh

      source "${version_file}"
    }
    
    # Prints the value that needs to be passed to the -ldflags parameter of go build
    # in order to set the Kubernetes based on the git tree status.
    # IMPORTANT: if you update any of these, also update the lists in
    # hack/print-workspace-status.sh.
    kube::version::ldflags() {
      kube::version::get_version_vars
    
      local -a ldflags
      function add_ldflag() {
        local key=${1}
        local val=${2}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 08:22:09 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/gccgo_link_c.txt

    ! go build -x -compiler gccgo
    stderr 'gccgo.*\-L [^ ]*alibpath \-lalib' # make sure that Go-inline "#cgo LDFLAGS:" ("-L alibpath -lalib") passed to gccgo linking stage
    ! stderr 'gccgo.*-lalib.*-lalib' # make sure -lalib is only passed once
    
    -- go.mod --
    module m
    -- cgoref.go --
    package main
    // #cgo LDFLAGS: -L alibpath -lalib
    // void f(void) {}
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:38:51 UTC 2023
    - 617 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/build_static.txt

    # runtime/cgo (issue #31544).
    go build -ldflags=-linkmode=external
    ! stderr runtime/cgo
    exec ./hello
    stdout Hello
    
    # Some targets don't support -static
    [GOOS:darwin] skip 'no static linking on Darwin'
    [GOOS:solaris] skip 'no static linking on Solaris'
    
    # Building with -linkmode=external -extldflags=-static should work.
    go build -ldflags='-linkmode=external -extldflags=-static'
    ! stderr runtime/cgo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 22:03:35 UTC 2023
    - 926 bytes
    - Viewed (0)
  6. src/cmd/go/internal/base/goflags.go

    	"cmd/internal/quoted"
    )
    
    var goflags []string // cached $GOFLAGS list; can be -x or --x form
    
    // GOFLAGS returns the flags from $GOFLAGS.
    // The list can be assumed to contain one string per flag,
    // with each string either beginning with -name or --name.
    func GOFLAGS() []string {
    	InitGOFLAGS()
    	return goflags
    }
    
    // InitGOFLAGS initializes the goflags list from $GOFLAGS.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt

    mkdir tmp5
    
    # First build: no external linking expected
    go build -ldflags=-tmpdir=tmp1 -o $devnull ./noUseOfCgo &
    
    # Second build: using only "runtime/cgo", expect internal linking.
    go build -ldflags=-tmpdir=tmp2 -o $devnull ./usesInternalCgo &
    
    # Third build: program uses only "runtime/cgo", so we would normally
    # expect internal linking, except that cflags contain suspicious entries
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 18:16:01 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testsanitizers/asan_test.go

    	dir := newTempDir(t)
    	defer dir.RemoveAll(t)
    
    	var ldflags string
    	for i := 1; i <= 10; i++ {
    		ldflags += fmt.Sprintf("-X=main.S%d=%d -X=cmd/cgo/internal/testsanitizers/testdata/asan_linkerx/p.S%d=%d ", i, i, i, i)
    	}
    
    	// build the binary
    	outPath := dir.Join("main.exe")
    	cmd := config.goCmd("build", "-ldflags="+ldflags, "-o", outPath)
    	cmd.Dir = srcPath("asan_linkerx")
    	mustRun(t, cmd)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  9. Makefile.core.mk

    ${TARGET_OUT}/release/istioctl-linux-amd64:
    	GOOS=linux GOARCH=amd64 LDFLAGS=$(RELEASE_LDFLAGS) common/scripts/gobuild.sh $@ ./istioctl/cmd/istioctl
    ${TARGET_OUT}/release/istioctl-linux-armv7:
    	GOOS=linux GOARCH=arm GOARM=7 LDFLAGS=$(RELEASE_LDFLAGS) common/scripts/gobuild.sh $@ ./istioctl/cmd/istioctl
    ${TARGET_OUT}/release/istioctl-linux-arm64:
    	GOOS=linux GOARCH=arm64 LDFLAGS=$(RELEASE_LDFLAGS) common/scripts/gobuild.sh $@ ./istioctl/cmd/istioctl
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jun 02 19:53:04 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  10. pkg/test/fakes/imageregistry/Makefile

    $(MD_PATH)/$(BIN_NAME)-amd64: $(MD_PATH)/main.go
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o $(BIN_NAME)-amd64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    
    $(MD_PATH)/$(BIN_NAME)-arm64: $(MD_PATH)/main.go
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o $(BIN_NAME)-arm64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    
    build: $(MD_PATH)/$(BIN_NAME)-amd64  $(MD_PATH)/$(BIN_NAME)-arm64
    
    build_and_push: build
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 17 16:29:18 UTC 2022
    - 1.5K bytes
    - Viewed (0)
Back to top