Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for extldflags (0.1 sec)

  1. src/cmd/dist/test.go

    			// This isn't actually a Go buildmode, just a convenient way to tell
    			// cgoTest we want static linking.
    			gt.buildmode = ""
    			if linkmode == "external" {
    				ldflags = append(ldflags, `-extldflags "-static -pthread"`)
    			} else if linkmode == "auto" {
    				gt.env = append(gt.env, "CGO_LDFLAGS=-static -pthread")
    			} else {
    				panic("unknown linkmode with static build: " + linkmode)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/lib.go

    	// even when linking with -static, causing a linker
    	// error when using GNU ld. So take out -rdynamic if
    	// we added it. We do it in this order, rather than
    	// only adding -rdynamic later, so that -extldflags
    	// can override -rdynamic without using -static.
    	// Similarly for -Wl,--dynamic-linker.
    	checkStatic := func(arg string) {
    		if ctxt.IsELF && arg == "-static" {
    			for i := range argv {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
Back to top