Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for Ldflags (0.26 sec)

  1. 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)
  2. 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)
  3. src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt

    [!GOOS:darwin] skip
    [!cgo] skip
    
    ! go build
    stderr 'invalid flag in #cgo LDFLAGS: -lto_library'
    
    -- go.mod --
    module ldflag
    
    -- main.go --
    package main
    
    // #cgo CFLAGS: -flto
    // #cgo LDFLAGS: -lto_library bad.dylib
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:41:16 UTC 2024
    - 241 bytes
    - Viewed (0)
  4. Makefile

    	@echo "Building minio binary to './minio'"
    	@CGO_ENABLED=0 go build -tags kqueue -trimpath --ldflags "$(LDFLAGS)" -o $(PWD)/minio 1>/dev/null
    
    hotfix-vars:
    	$(eval LDFLAGS := $(shell MINIO_RELEASE="RELEASE" MINIO_HOTFIX="hotfix.$(shell git rev-parse --short HEAD)" go run buildscripts/gen-ldflags.go $(shell git describe --tags --abbrev=0 | \
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. .github/workflows/go-lint.yml

              CGO_ENABLED: 0
              GO111MODULE: on
            run: |
              Set-MpPreference -DisableRealtimeMonitoring $true
              netsh int ipv4 set dynamicport tcp start=60000 num=61000
              go build --ldflags="-s -w" -o %GOPATH%\bin\minio.exe
              go test -v --timeout 120m ./...
          - name: Build on ${{ matrix.os }}
            if: matrix.os == 'ubuntu-latest'
            env:
              CGO_ENABLED: 0
              GO111MODULE: on
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 22:29:33 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. src/cmd/link/link_test.go

    		t.Fatal(err)
    	}
    
    	// Link with -v -linkmode=external to see the flags we pass to the
    	// external linker.
    	ldflags := "-ldflags=-v -linkmode=external -tmpdir=" + linktmp
    	var out0 []byte
    	for i := 0; i < 5; i++ {
    		cmd := testenv.Command(t, testenv.GoToolPath(t), "build", ldflags, "-o", exe, src)
    		out, err := cmd.CombinedOutput()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
Back to top