Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 169 for ldflag (0.16 sec)

  1. 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)
  2. src/cmd/link/internal/ld/go.go

    					nerrors++
    					return
    				}
    
    				interpreter = f[1]
    			}
    			continue
    
    		case "cgo_ldflag":
    			if len(f) != 2 {
    				break
    			}
    			ldflag = append(ldflag, f[1])
    			continue
    		}
    
    		fmt.Fprintf(os.Stderr, "%s: %s: invalid cgo directive: %q\n", os.Args[0], file, f)
    		nerrors++
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/lib.go

    }
    
    var (
    	dynlib          []string
    	ldflag          []string
    	havedynamic     int
    	Funcalign       int
    	iscgo           bool
    	elfglobalsymndx int
    	interpreter     string
    
    	debug_s bool // backup old value of debug['s']
    	HEADR   int32
    
    	nerrors  int
    	liveness int64 // size of liveness data (funcdata), printed if -v
    
    	// See -strictdups command line flag.
    	checkStrictDups   int // 0=off 1=warning 2=error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/base/goflags.go

    type boolFlag interface {
    	flag.Value
    	IsBoolFlag() bool
    }
    
    // SetFromGOFLAGS sets the flags in the given flag set using settings in $GOFLAGS.
    func SetFromGOFLAGS(flags *flag.FlagSet) {
    	InitGOFLAGS()
    
    	// This loop is similar to flag.Parse except that it ignores
    	// unknown flags found in goflags, so that setting, say, GOFLAGS=-ldflags=-w
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. test/linkx_run.go

    	cmd = exec.Command("go", "run", "-ldflags=-X main.tbd", "linkx.go")
    	_, err = cmd.CombinedOutput()
    	if err == nil {
    		fmt.Println("-X linker flag should not accept keys without values")
    		os.Exit(1)
    	}
    
    	// Issue 9621
    	cmd = exec.Command("go", "run", "-ldflags=-X main.b=false -X main.x=42", "linkx.go")
    	outx, err := cmd.CombinedOutput()
    	if err == nil {
    		fmt.Println("-X linker flag should not overwrite non-strings")
    		os.Exit(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. 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)
  10. pkg/test/fakes/gce_metadata_server/Makefile

    TAG := 1.2
    
    all: build_and_push clean
    
    build_and_push:
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main-amd64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o main-arm64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    	docker buildx build --platform=linux/amd64,linux/arm64  $(MD_PATH) -t $(IMG):$(TAG) --push
    
    clean:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top