Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 285 for ldflag (0.21 sec)

  1. 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)
  2. 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)
  3. src/syscall/fs_wasip1.go

    	case O_RDWR:
    		rights = fileRights
    	}
    
    	var fdflags fdflags
    	if (openmode & O_APPEND) != 0 {
    		fdflags |= FDFLAG_APPEND
    	}
    	if (openmode & O_SYNC) != 0 {
    		fdflags |= FDFLAG_SYNC
    	}
    
    	var fd int32
    	errno := path_open(
    		dirFd,
    		LOOKUP_SYMLINK_FOLLOW,
    		pathPtr,
    		pathLen,
    		oflags,
    		rights,
    		fileRights,
    		fdflags,
    		unsafe.Pointer(&fd),
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/internal/objabi/flag.go

    			// expect form ssa/phase/flag
    			// e.g. -d=ssa/generic_cse/time
    			// _ in phase name also matches space
    			phase := name[4:]
    			flag := "debug" // default flag is debug
    			if i := strings.Index(phase, "/"); i >= 0 {
    				flag = phase[i+1:]
    				phase = phase[:i]
    			}
    			err := f.debugSSA(phase, flag, val, valstring)
    			if err != "" {
    				log.Fatalf(err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 23:08:09 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/term/term_unix.go

    	// the termios(3) manpage.
    	termios.Iflag &^= unix.IGNBRK | unix.BRKINT | unix.PARMRK | unix.ISTRIP | unix.INLCR | unix.IGNCR | unix.ICRNL | unix.IXON
    	termios.Oflag &^= unix.OPOST
    	termios.Lflag &^= unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN
    	termios.Cflag &^= unix.CSIZE | unix.PARENB
    	termios.Cflag |= unix.CS8
    	termios.Cc[unix.VMIN] = 1
    	termios.Cc[unix.VTIME] = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt

    # 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
    # (in this case, a flag that does not appear on the allow list).
    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. 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)
  10. 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)
Back to top